blob: cd6a88416bb8c978a426213b0b46e9158625341f [file] [log] [blame]
#overflow::-webkit-scrollbar {
visibility: hidden;
<body style="height: 200%">
Test for <i><a href=""></a>
<a href="rdar://problem/8251616">&lt;rdar://problem/8251616></a> Layout not updating in a subtree when a scrollbar is hidden in a flexbox descendant</i>.
There should be no red on this page.
<p id="result">Test did not run.</p>
<div style="display: -webkit-box; -webkit-box-orient: vertical;">
<div> <!-- this is going to end up marked for layout after initial layout -->
<div id="target" style="width: 100px; height: 100px; background-color: red;"></div>
<div id="overflow" style="overflow: auto; height: 100px; width: 100px;">
<div style="height: 150px;"></div>
if (window.testRunner)
function test()
var target = document.getElementById("target"); = "0";
document.getElementById("result").innerText = target.offsetHeight == 0 ? "PASS" : "FAIL";