Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / overflow / content-loses-scrollbars.html
blobd99b0b9918397c46bebdf33127bb3c6a858d1726
1 <!DOCTYPE html>
2 <script src="../../resources/run-after-layout-and-paint.js"></script>
3 <style>
4 .container {
5 width: 100px;
6 height:100px;
7 position:absolute;
8 transform:translateZ(0);
9 overflow:auto;
12 .content {
13 transform: translateZ(0);
14 position:absolute;
15 width:10px;
16 height:10px;
19 .tall {
20 height:200px;
23 .wide {
24 width:200px;
27 .resizeWidget {
28 resize: both;
31 </style>
32 <pre id="layerTree"></pre>
33 <div class="container">
34 <div id="vertical" class="content tall"></div>
35 </div>
36 <div class="container">
37 <div id="horizontal" class="content wide"></div>
38 </div>
39 <div class="container">
40 <div id="both" class="content tall wide"></div>
41 </div>
42 <div id="corner" class="container resizeWidget">
43 <div class="content"></div>
44 </div>
45 <script>
46 function finishTest() {
47 document.getElementById("vertical").classList.remove("tall"); // topmost div loses a vertical scrollbar
48 document.getElementById("horizontal").classList.remove("wide"); // second div loses a horizontal scrollbar
49 document.getElementById("both").classList.remove("wide"); // third div loses both
50 document.getElementById("both").classList.remove("tall"); // vertical and horizontal scrollbars
51 document.getElementById("corner").classList.remove("resizeWidget"); // bottom div loses a resize corner but no scrollbars
52 if (window.testRunner) {
53 document.getElementById("layerTree").innerText = window.internals.layerTreeAsText(document);
54 testRunner.notifyDone();
58 if (window.testRunner) {
59 testRunner.dumpAsText();
60 testRunner.waitUntilDone();
62 runAfterLayoutAndPaint(finishTest);
63 </script>