Browser scroll position affects position:fixed elements when printing
Reported by
mich...@elaura.com,
Oct 3 2016
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 Steps to reproduce the problem: 1. Go to http://mjmasn.github.io/position-fixed-bug.html 2. Open print preview, header is in correct position 3. Close print preview, scroll down the page slightly 4. Open print preview, header is no longer correctly positioned (has been affected by the scroll offset) What is the expected behavior? Since the fix linked below, the header should appear in a fixed position on every printed page. https://bugs.chromium.org/p/chromium/issues/detail?id=303728 What went wrong? The position:fixed element appears on every page instead of just the first page - which is a recent improvement ( issue #303728 )- but it should ignore the scroll offset of the page because the intention behind the feature was to allow developers to add page headers/footers to each page. Did this work before? N/A Chrome version: 53.0.2785.143 Channel: stable OS Version: OS X 10.12.0 Flash Version: Shockwave Flash 23.0 r0
,
Oct 5 2016
,
Oct 5 2016
,
Oct 11 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/1784f2fdcda8d6ee356c82ddcbae096ab00113c3 commit 1784f2fdcda8d6ee356c82ddcbae096ab00113c3 Author: robhogan <robhogan@gmail.com> Date: Tue Oct 11 22:33:40 2016 Fixed pos objects are offset from the top of the page in paged media BUG= 652449 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 TBR=eae@chromium.org Review-Url: https://codereview.chromium.org/2394913003 Cr-Commit-Position: refs/heads/master@{#424572} [add] https://crrev.com/1784f2fdcda8d6ee356c82ddcbae096ab00113c3/third_party/WebKit/LayoutTests/printing/fixed-positioned-scrolled-expected.html [add] https://crrev.com/1784f2fdcda8d6ee356c82ddcbae096ab00113c3/third_party/WebKit/LayoutTests/printing/fixed-positioned-scrolled.html [modify] https://crrev.com/1784f2fdcda8d6ee356c82ddcbae096ab00113c3/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp [modify] https://crrev.com/1784f2fdcda8d6ee356c82ddcbae096ab00113c3/third_party/WebKit/Source/platform/geometry/LayoutPoint.h
,
Oct 15 2016
,
Oct 17 2016
|
||||
►
Sign in to add a comment |
||||
Comment 1 by karandeepb@chromium.org
, Oct 4 2016Components: Internals>Printing Blink>Layout
Status: Untriaged (was: Unconfirmed)