Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Unified Diff: LayoutTests/compositing/overflow/reflected-overlay-scrollbars-should-respect-ancestor-clip.html

Issue 397713004: Overlay scrollbars must respect ancestor clip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/compositing/overflow/reflected-overlay-scrollbars-should-respect-ancestor-clip-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/overflow/reflected-overlay-scrollbars-should-respect-ancestor-clip.html
diff --git a/LayoutTests/compositing/overflow/reflected-overlay-scrollbars-should-appear-without-compositing-expected.html b/LayoutTests/compositing/overflow/reflected-overlay-scrollbars-should-respect-ancestor-clip.html
similarity index 64%
copy from LayoutTests/compositing/overflow/reflected-overlay-scrollbars-should-appear-without-compositing-expected.html
copy to LayoutTests/compositing/overflow/reflected-overlay-scrollbars-should-respect-ancestor-clip.html
index bc77caba0bf91c7dff406aac46d3e16210dd22de..7104bb7424e47caa616a1282ff1d344b036bc746 100644
--- a/LayoutTests/compositing/overflow/reflected-overlay-scrollbars-should-appear-without-compositing-expected.html
+++ b/LayoutTests/compositing/overflow/reflected-overlay-scrollbars-should-respect-ancestor-clip.html
@@ -1,14 +1,18 @@
<!DOCTYPE HTML>
+<!--
+ This test ensures that reflected overlay scrollbars still render correctly
+ when reflected.
+-->
<style>
#container {
-webkit-box-reflect: below;
}
#clipper {
- overflow: hidden;
- width: 110px;
- height: 100px;
- margin: 10px;
+ overflow: hidden;
+ width: 95px;
+ height: 100px;
+ margin: 10px;
}
#scroller {
@@ -25,6 +29,8 @@
position: fixed;
left: 200px;
background: blue;
+ /* Without this, when _not_ composited, the reflected scrollbar disappears. See crbug.com/396775 */
+ -webkit-transform: translateZ(0);
}
#scrolled {
@@ -48,10 +54,10 @@ onload = function() {
};
</script>
<div id="container">
- <div id="clipper">
- <div id="scroller">
- <div id="fixed"></div>
- <div id="scrolled"></div>
+ <div id="clipper">
+ <div id="scroller">
+ <div id="fixed"></div>
+ <div id="scrolled"></div>
+ </div>
</div>
- </div>
</div>
« no previous file with comments | « no previous file | LayoutTests/compositing/overflow/reflected-overlay-scrollbars-should-respect-ancestor-clip-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698