[Webkit-unassigned] [Bug 6790] New: position:fixed elements depend on scrollbar position when printing
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Wed Jan 25 03:58:04 PST 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=6790
Summary: position:fixed elements depend on scrollbar position
when printing
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: Printing
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: opendarwin at hoepfl.de
I wanted to use a media="print" CSS to position a logo on the left of every
printed page. The code seems correct to me and works fine in Firefox but in
Safari there are two errors:
- The logo does not appear on *every* page. It is printed only once. ("For
paged media, boxes with fixed positions are repeated on every page",
http://www.w3.org/TR/CSS21/visuren.html#fixed-positioning)
- If the viewport is scrolled when I print the page, the logo is printed at the
wrong position.
Minimized example code:
<html><head><title>Test</title></head><body>
<div style="background-color:#ddd; height:30cm;">Make page big</div>
<div style="position:fixed; top:0px; left:0px;">Should be on the upper left of
all pages!</div>
</body></html>
How to reproduce:
- Save the example code to file.html
- Open file.html in Safari
- Print (Preview)
- Scroll to the end
- Print (Preview)
Expected result:
On screen the text "Should be on the upper left of all pages!" should be fixed
on the upper left corner. When scrolling down the text is still there. This
works fine.
When printed, the text should be on the upper left of *every* page. The text
should *not* move down on the printout regardless where you scrolled to on
screen. Both previews should be equal.
--
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list