Regression(r188105): Seems to have caused crashes during PLT on some iPads
[WebKit-https.git] / LayoutTests / fast / css / deprecated-flex-box-zero-width-intrinsic-max-width.html
1 <head>
2 <title>Test case for bug https://bugs.webkit.org/show_bug.cgi?id=85991</title>
3 <script src="../../resources/js-test-pre.js"></script>
4 </head>
5 <style>
6 #outer {
7     display: -webkit-box;
8 }
9 #inner {
10     overflow: hidden;
11     max-width: intrinsic;
12     width: 0px;
13     -webkit-box-flex: 60;
14 }
15 </style>
16
17 <div id="outer">
18     <div id="inner">PASS</div>
19 </div>
20 <script>
21 description("Tests if the Deprecated Flex boxes with max-width: intrinsic and width:0 has non-zero calculated width");
22 var x = document.getElementById('inner');
23 var flexBoxDiv = x.getClientRects()[0];
24 shouldBeNonZero("flexBoxDiv.width");
25
26 //cleanup
27 var node = document.getElementById('inner');
28 node.parentNode.removeChild(node);
29 </script>
30 <script src="../../resources/js-test-post.js"></script>