1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/style/test/test_bug200089.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=200089 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 200089</title> 1.11 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.13 +</head> 1.14 +<body> 1.15 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=200089">Mozilla Bug 200089</a> 1.16 +<div id="display" style="width: 600px"> 1.17 + <table border="0" id="t" style="width: 300px; margin-left: auto; margin-right: auto"> 1.18 + <tr><td>Cell</td></tr> 1.19 + </table> 1.20 +</div> 1.21 +<div id="content" style="display: none"> 1.22 + 1.23 +</div> 1.24 +<pre id="test"> 1.25 +<script type="application/javascript"> 1.26 + 1.27 +/** Test for Bug 200089 **/ 1.28 +is(getComputedStyle($("t"), "").width, "300px", 1.29 + "Used width should match specified width in this case"); 1.30 +</script> 1.31 +</pre> 1.32 +</body> 1.33 +</html>