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"> <html> <head> </head> <body> <div style="width:100mm;height:100mm;background-color:yellow;border-color:black;border-style:solid"> </div> </body> </html>
Please follow the QtWebKit bug reporting guidelines when reporting bugs. See http://trac.webkit.org/wiki/QtWebKitBugs Specifically: - 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 http://trac.webkit.org/wiki/QtWebKitBugs#Component - Add the keyword 'Qt' to signal that it's a Qt-related bug http://trac.webkit.org/wiki/QtWebKitBugs#Keywords
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.
Created attachment 50809 [details] Inline test case saved and attached
*** Bug 35668 has been marked as a duplicate of this bug. ***
probably this bug should be renamed to "Qt webkit does not respect DPI settings while printing" and probably its somehow related to Bug 18001
=== 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.