Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / overflow / updating-scrolling-container-and-content.html
blob38f01bd60f7b6608273facd75e6d8971f2f1d858
1 <!DOCTYPE html>
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 <script>
4 function repaintTest() {
5 document.getElementById('container').style.color = "green";
7 onload = function() {
8 document.getElementById('container').scrollTop = 50;
9 runRepaintTest();
11 </script>
12 <style>
13 #container {
14 overflow: scroll;
15 width: 200px;
16 height: 200px;
18 </style>
19 <div style="height: 100px">
20 Tests invalidation of scrolling container and contents on change of style which affects also the contents.
21 Passes if the content text is green, and the whole content layer (if composited scrolling) is invalidated.
22 </div>
23 <div id="container">
24 CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT
25 </div>