Bug 33657

Summary: [Qt] Printing a page with a div tag that has a specific width/height set does not respect the settings
Product: WebKit Reporter: qt-info
Component: PrintingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: jturcotte, rion4ik, vestbo
Priority: P2 Keywords: Qt, QtTriaged
Version: 525.x (Safari 3.2)   
Hardware: PC   
OS: Windows Vista   
Attachments:
Description Flags
Inline test case saved and attached none

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">
<html>
<head>
</head>
<body>
<div style="width:100mm;height:100mm;background-color:yellow;border-color:black;border-style:solid">
</div>
</body>
</html>
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

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
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.