3 #overflow::-webkit-scrollbar {
8 <body style=
"height: 200%">
10 Test for
<i><a href=
"https://bugs.webkit.org/show_bug.cgi?id=48154">https://bugs.webkit.org/show_bug.cgi?id=
48154</a>
11 <a href=
"rdar://problem/8251616"><rdar://problem/
8251616></a> Layout not updating in a subtree when a scrollbar is hidden in a flexbox descendant
</i>.
14 There should be no red on this page.
16 <p id=
"result">Test did not run.
</p>
17 <div style=
"display: -webkit-box; -webkit-box-orient: vertical;">
18 <div> <!-- this is going to end up marked for layout after initial layout -->
19 <div id=
"target" style=
"width: 100px; height: 100px; background-color: red;"></div>
20 <div id=
"overflow" style=
"overflow: auto; height: 100px; width: 100px;">
21 <div style=
"height: 150px;"></div>
26 if (window
.testRunner
)
27 testRunner
.dumpAsText();
31 var target
= document
.getElementById("target");
32 target
.style
.height
= "0";
33 document
.getElementById("result").innerText
= target
.offsetHeight
== 0 ? "PASS" : "FAIL";
36 document
.body
.offsetTop
;