Bug 33657 - [Qt] Printing a page with a div tag that has a specific width/height set does not respect the settings
Summary: [Qt] Printing a page with a div tag that has a specific width/height set does...
Alias: None
Product: WebKit
Classification: Unclassified
Component: Printing (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: PC Windows Vista
: P2 Normal
Assignee: Nobody
Keywords: Qt, QtTriaged
: 35668 (view as bug list)
Depends on:
Reported: 2010-01-14 01:16 PST by qt-info
Modified: 2014-02-03 03:16 PST (History)
3 users (show)

See Also:

Inline test case saved and attached (244 bytes, text/html)
2010-03-16 11:09 PDT, Jocelyn Turcotte
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description qt-info 2010-01-14 01:16:31 PST
The following minimal HTML when viewed and then printed from the demo browser shows that the area is not in fact 100mm wide or high as indicated.  It is in fact 80mmx80mm instead.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<div style="width:100mm;height:100mm;background-color:yellow;border-color:black;border-style:solid">
Comment 1 Tor Arne Vestbø 2010-03-10 06:38:56 PST
Please follow the QtWebKit bug reporting guidelines when reporting bugs.

See http://trac.webkit.org/wiki/QtWebKitBugs


  - The 'QtWebKit' component should only be used for bugs/features in the
    public QtWebKit API layer, not to signify that the bug is specific to
    the Qt port of WebKit


  - Add the keyword 'Qt' to signal that it's a Qt-related bug

Comment 2 Jocelyn Turcotte 2010-03-16 11:07:55 PDT
Reproduced on Windows with Qt 4.6 + QtWebKit r56049.

Looked at the print preview which should show the square about half the width of the page but it's about 2/3 of that.

The firefox print preview shows the square the expected size.
Comment 3 Jocelyn Turcotte 2010-03-16 11:09:06 PDT
Created attachment 50809 [details]
Inline test case saved and attached
Comment 4 Jocelyn Turcotte 2010-04-26 03:57:53 PDT
*** Bug 35668 has been marked as a duplicate of this bug. ***
Comment 5 Rion 2012-10-24 00:51:31 PDT
probably this bug should be renamed to "Qt webkit does not respect DPI settings while printing"
and probably its somehow related to Bug 18001
Comment 6 Jocelyn Turcotte 2014-02-03 03:16:06 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.