Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / repaint / should-not-repaint-composited-descendants-on-overflow-change.html
blobead0e81396bbf8909d02a104b83f2fa28aeaf3f8
1 <!DOCTYPE html>
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 <script>
4 function repaintTest() {
5 document.getElementById('overflow1').style.overflow = "visible";
6 document.getElementById('overflow2').style.overflow = "hidden";
8 onload = runRepaintAndPixelTest;
9 </script>
10 <style>
11 body {
12 margin: 0;
14 #overflow1 {
15 overflow: hidden;
16 width: 200px;
17 height: 200px;
19 #overflow2 {
20 overflow: visible;
21 width: 200px;
22 height: 200px;
24 .composited-child {
25 width: 100px;
26 height: 100px;
27 background-color: green;
28 backface-visibility: hidden;
30 .overflow-child {
31 position: relative;
32 top: 50px;
33 left: 150px;
35 </style>
36 <!-- We should not repaint composited descendants on overflow style changes (verified with the text expectation).
37 The compositor should handle any visual change caused by the change of overflow clipping (verified with the pixel expectation). -->
38 <div id="overflow1">
39 <div class="composited-child"></div>
40 <div class="composited-child overflow-child"></div>
41 </div>
42 <div id="overflow2">
43 <div class="composited-child"></div>
44 <div class="composited-child overflow-child"></div>
45 </div>