diff options
Diffstat (limited to 'third_party/WebKit/LayoutTests/compositing/squashing/clip-to-squashed-layer-size.html')
-rw-r--r-- | third_party/WebKit/LayoutTests/compositing/squashing/clip-to-squashed-layer-size.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/compositing/squashing/clip-to-squashed-layer-size.html b/third_party/WebKit/LayoutTests/compositing/squashing/clip-to-squashed-layer-size.html new file mode 100644 index 0000000..bce268f --- /dev/null +++ b/third_party/WebKit/LayoutTests/compositing/squashing/clip-to-squashed-layer-size.html @@ -0,0 +1,16 @@ +<!doctype html> +<script> + // Checks that when painting squashed layers, contents are clipped to the size of the squashed layer. + if (window.internals) + internals.settings.setLayerSquashingEnabled(true); +</script> +</head> +<body> + <div style=" width: 1px; height: 100px; -webkit-transform: translateZ(0px); position:absolute; top:0px; background-color: lightgray"> + </div> + <div style="width: 10px; height: 10px; overflow: hidden; position: absolute; left: 0px; top: 0px; "> + <div style="height: 100px; width:100px; background-color:lightgreen" /> + </div> + </div> + <div style="left: 0px; height: 9px; width: 9px; position:absolute; top:99px; background-color: blue"> +</body> |