Bug 33657 - [Qt] Printing a page with a div tag that has a specific width/height set does not respect the settings
: [Qt] Printing a page with a div tag that has a specific width/height set does...
: WebKit
: 525.x (Safari 3.2)
: PC Windows Vista
: P2 Normal
Assigned To:
: Qt, QtTriaged
  Show dependency treegraph
Reported: 2010-01-14 01:16 PST by
Modified: 2014-02-03 03:16 PST (History)

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


You need to log in before you can comment on or make changes to this bug.

Description From 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 From 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 From 2010-03-16 11:07:55 PST -------
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 From 2010-03-16 11:09:06 PST -------
Created an attachment (id=50809) [details]
Inline test case saved and attached
------- Comment #4 From 2010-04-26 03:57:53 PST -------
*** Bug 35668 has been marked as a duplicate of this bug. ***
------- Comment #5 From 2012-10-24 00:51:31 PST -------
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 From 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.