Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / update-paint-phases.html
blobeb79e80ff8f5cceeff382d1ade75d100a90bfcff
1 <!DOCTYPE HTML>
2 <style>
3 .scroller {
4 width: 100px;
5 height: 100px;
6 border: 1px solid black;
7 overflow: scroll;
10 .scrolled {
11 width: 40px;
12 height: 40px;
13 background: green;
16 .neg-zorder {
17 position: relative;
18 z-index: -1;
19 transform: translateZ(0);
20 background: blue;
22 </style>
23 <script>
24 if (window.internals) {
25 internals.settings.setPreferCompositingToLCDTextEnabled(true);
27 </script>
28 <div class="scroller">
29 <div class="scrolled neg-zorder" id="to-modify"></div>
30 <div class="scrolled"></div>
31 <div class="scrolled"></div>
32 <div class="scrolled"></div>
33 </div>
34 <script>
35 if (window.testRunner)
36 testRunner.dumpAsText();
38 if (window.internals) {
39 window.internals.forceCompositingUpdate(document);
40 window.internals.startTrackingRepaints(document);
43 document.querySelector('style').appendChild(document.createTextNode('#to-modify { display: none }'));
45 if (window.internals) {
46 var layerTree = document.createElement('pre');
47 layerTree.innerHTML = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_PAINTING_PHASES);
48 window.internals.stopTrackingRepaints(document);
49 document.body.appendChild(layerTree);
51 </script>