commit | bd951736b4d7dbfd862dfa0f27271b544e35ca30 | [log] [tgz] |
---|---|---|
author | Chris Harrelson <chrishtr@chromium.org> | Wed Jan 23 00:40:38 2019 |
committer | Blink WPT Bot <blink-w3c-test-autoroller@chromium.org> | Wed Jan 23 00:46:46 2019 |
tree | 5bdf519002b900b4ec13c5c383706bb4ff9dbb61 | |
parent | 538eac8f698febbc6a4629b1269077ba0aff6c1b [diff] |
Always promote fixed and sticky positioned elements, if they stick to a scroller. Note that we will promote sticky-positioned elements even if the scroller is not composited. This allows us to remove a large amount of complex code having to do with ordering of decisions about compositing scroll vs the sticky-positioned element. Bug: 921242 Change-Id: I29d1ede06312325b1ee13c5b7d5d4987d7053d1e Reviewed-on: https://chromium-review.googlesource.com/c/1407922 Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Reviewed-by: Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/master@{#624999}
diff --git a/css/css-position/position-sticky-hyperlink-ref.html b/css/css-position/position-sticky-hyperlink-ref.html index 74a48fb..0f8100e 100644 --- a/css/css-position/position-sticky-hyperlink-ref.html +++ b/css/css-position/position-sticky-hyperlink-ref.html
@@ -15,6 +15,7 @@ .positioned { position: relative; top: 100px; + will-change: transform; } .spacer {
diff --git a/css/css-position/position-sticky-hyperlink.html b/css/css-position/position-sticky-hyperlink.html index 466876e..fc1c2fc 100644 --- a/css/css-position/position-sticky-hyperlink.html +++ b/css/css-position/position-sticky-hyperlink.html
@@ -18,6 +18,7 @@ .sticky { position: sticky; top: 0; + will-change: transform; } .spacer {