layout/reftests/table-width/dynamic-fixed-layout-1.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 <!DOCTYPE html>
michael@0 2 <html class="reftest-wait">
michael@0 3 <!-- The fixed height on the body is in fact needed to reproduce bug 735579
michael@0 4 for some reason -->
michael@0 5 <body style="height: 100px;">
michael@0 6 <script>
michael@0 7 window.onload = function() {
michael@0 8 var target = document.getElementById("test-target");
michael@0 9 window.targetWidth = target.getBoundingClientRect().width;
michael@0 10 target.style.width = "100px";
michael@0 11 document.documentElement.className = "";
michael@0 12 }
michael@0 13 </script>
michael@0 14 <table style="width: 250px; table-layout: fixed;">
michael@0 15 <tr>
michael@0 16 <td style="width: 100px; background: #CC99CC;">A</td>
michael@0 17 <td id="test-target" style="background: #99CCCC;">B</td>
michael@0 18 <td style="background: #CCCC99;">C</td>
michael@0 19 </tr>
michael@0 20 <tr>
michael@0 21 <td style="background: #CC99CC;">D</td>
michael@0 22 <td style="background: #99CCCC;">E</td>
michael@0 23 <td style="background: #CCCC99;">F</td>
michael@0 24 </tr>
michael@0 25 </table>
michael@0 26 </body>
michael@0 27 </html>

mercurial