Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/test_data/fixed-position.html |
| diff --git a/third_party/WebKit/Source/core/paint/test_data/fixed-position.html b/third_party/WebKit/Source/core/paint/test_data/fixed-position.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e1c5393c80f4ecbe8654c003cee7dea57aac75fb |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/paint/test_data/fixed-position.html |
| @@ -0,0 +1,38 @@ |
| +<style> |
|
jbroman
2015/10/21 15:33:35
The test data files still need to be added to webk
jbroman
2015/10/21 16:18:20
And/or WebKitUnitTests.isolate. I have no idea why
trchen
2015/10/21 22:21:14
Done. My guess is that because on Android the pack
|
| +.positioned-scroll { |
| + position: absolute; |
| + left: 100px; |
| + top: 50px; |
| + width: 400px; |
| + height: 300px; |
| + overflow: scroll; |
| +} |
| + |
| +.bloat { |
| + height: 10000px; |
| +} |
| + |
| +.fixed { |
| + position: fixed; |
| + left: 200px; |
| + top: 150px; |
| + width: 100px; |
| + height: 100px; |
| +} |
| + |
| +.transformed-scroll { |
| + transform: scaleX(2); |
| + width: 400px; |
| + height: 300px; |
| + overflow: scroll; |
| +} |
| +</style> |
| +<div class="positioned-scroll"> |
| + <div class="bloat"></div> |
| + <div class="fixed" id="target1"></div> |
| +</div> |
| +<div class="transformed-scroll" id="scroller"> |
| + <div class="bloat"></div> |
| + <div class="fixed" id="target2"></div> |
| +</div> |
| +This test verifies fixed-position elements correctly skip scrolling and adhere to transformed container. |