| <title>Test case for bug https://bugs.webkit.org/show_bug.cgi?id=85991</title> |
| <script src="../../resources/js-test-pre.js"></script> |
| <div id="inner">PASS</div> |
| description("Tests if the Deprecated Flex boxes with max-width: intrinsic and width:0 has non-zero calculated width"); |
| var x = document.getElementById('inner'); |
| var flexBoxDiv = x.getClientRects()[0]; |
| shouldBeNonZero("flexBoxDiv.width"); |
| var node = document.getElementById('inner'); |
| node.parentNode.removeChild(node); |
| <script src="../../resources/js-test-post.js"></script> |