Chromium Code Reviews| Index: LayoutTests/fast/css/sticky/sticky-as-positioning-container.html |
| diff --git a/LayoutTests/fast/css/sticky/sticky-as-positioning-container.html b/LayoutTests/fast/css/sticky/sticky-as-positioning-container.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..51c7e0e0b55e61bef3c16d96db25a90a661498b3 |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/sticky/sticky-as-positioning-container.html |
| @@ -0,0 +1,26 @@ |
| +<style type="text/css"> |
| +div { |
| + height: 100px; |
| + width: 100px; |
| +} |
| +.spacer { |
| + background-color: red; |
| +} |
| +.sticky { |
| + background-color: green; |
| + position: sticky; |
| +} |
| +.absoffset { |
| + background-color: green; |
| + position: absolute; |
| + top: -100px; |
| +} |
| +</style> |
| +<div class="spacer"></div> |
| +<div class="sticky"> |
| + <!-- |
| + Tests that the absolute positioned child is positioned relative to the sticky container. You should see only a |
| + green box as this will cover up the red box above the sticky div. |
|
Rick Byers
2015/07/03 01:43:55
Prefer ref tests over pixel tests: https://www.chr
flackr
2015/07/14 15:24:35
Done. Even though a layout test would have worked
|
| + --> |
| + <div class="absoffset"></div> |
| +</div> |