summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/deprecated-flex-box-zero-width-intrinsic-max-width.html
blob: 18be2152a7204ff61a0df6d5931359416c480844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<head>
<title>Test case for bug https://bugs.webkit.org/show_bug.cgi?id=85991</title>
<script src="../../resources/js-test.js"></script>
</head>
<style>
#outer {
    display: -webkit-box;
}
#inner {
    overflow: hidden;
    max-width: max-content;
    width: 0px;
    -webkit-box-flex: 60;
}
</style>

<div id="outer">
    <div id="inner">PASS</div>
</div>
<script>
description("Tests if the Deprecated Flex boxes with max-width: max-content and width:0 has non-zero calculated width");
var x = document.getElementById('inner');
var flexBoxDiv = x.getClientRects()[0];
shouldBeNonZero("flexBoxDiv.width");

//cleanup
var node = document.getElementById('inner');
node.parentNode.removeChild(node);
</script>