DescriptionConsider transformed container's scroll offset when calculating fixed descendant's offset
Fixed-position descendant of a transformed-container behaves differently
than normal fixed-position elements. See
http://dev.w3.org/csswg/css-transforms/#transform-rendering for details.
Though the topic is still controversial
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16328 we have already
followed the current spec in most parts of our code.
The spec doesn't say if the fixed-pos element should scroll if the
transformed container is scrollable. We are inconsistent about this.
We consider the scroll offset during painting, but not during
invalidation. When the fixed-position elements needs repaint,
we invalidate the place that is different from where paint the fixed-pos
element, if the transformed container is scrolled.
This change make it consistent.
With this change, we'll avoid corrupted rendering, and behave the same
as Firefox.
BUG=439930
TEST=fast/repaint/fixed-descendant-of-transformed-scrolled.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188245
Patch Set 1 #
Total comments: 2
Patch Set 2 : ASSERT and comments about the scrollable container of the fixed-position #
Messages
Total messages: 12 (3 generated)
|