Index: LayoutTests/compositing/overflow/reparented-unclipped-overlay-scrollbars-with-offset-from-renderer.html |
diff --git a/LayoutTests/compositing/overflow/non-reparented-overlay-scrollbars.html b/LayoutTests/compositing/overflow/reparented-unclipped-overlay-scrollbars-with-offset-from-renderer.html |
similarity index 68% |
copy from LayoutTests/compositing/overflow/non-reparented-overlay-scrollbars.html |
copy to LayoutTests/compositing/overflow/reparented-unclipped-overlay-scrollbars-with-offset-from-renderer.html |
index 48f02ae13b0d350a7c4fd61840c0a0938acaeb3f..4597b5693b67b5c04efbeee8b2f91c3c4b5886b6 100644 |
--- a/LayoutTests/compositing/overflow/non-reparented-overlay-scrollbars.html |
+++ b/LayoutTests/compositing/overflow/reparented-unclipped-overlay-scrollbars-with-offset-from-renderer.html |
@@ -1,28 +1,31 @@ |
<!DOCTYPE HTML> |
+<!-- |
+ This test ensures that the offset from renderer is correctly applied |
+ to reparented overflow controls, even if they are unclipped. |
+--> |
<style> |
- #scroller { |
+#scroller { |
overflow: scroll; |
width: 300px; |
height: 300px; |
position: relative; |
- z-index: 0; |
top: 10px; |
- } |
+} |
- #fixed { |
+#fixed { |
position: fixed; |
background: blue; |
left: 90px; |
width: 10px; |
height: 10px; |
- } |
+} |
- #scrolled { |
+#scrolled { |
position: relative; |
background: green; |
width: 80px; |
height: 500px; |
- } |
+} |
</style> |
<script> |
if (window.internals) { |
@@ -31,6 +34,6 @@ if (window.internals) { |
} |
</script> |
<div id='scroller'> |
- <div id='fixed'></div> |
- <div id='scrolled'></div> |
+ <div id='fixed'></div> |
+ <div id='scrolled'></div> |
</div> |