Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / 040.html
blobf8fdf6a9d8a8ce88385745910a6a2860ea7ae40d
2 <head>
3 <style>
4 .one {
5 background-color: cyan;
8 .two {
9 background-color: yellow;
12 .three {
13 background-color: lime;
16 .span {
17 background-color: pink;
20 td {
21 height: 20px;
24 </style>
26 <script>
27 function dumpWidths(table)
29 var cell1 = document.getElementById(table + "-one");
30 var cell2 = document.getElementById(table + "-two");
31 document.write("<p>");
32 document.write("The table width is: " + document.getElementById(table).offsetWidth + "<br>");
33 document.write("Column One is: " + Math.round(100*cell1.offsetWidth/(cell1.offsetWidth+cell2.offsetWidth)) + "%");
34 document.write("<br>");
35 document.write("Column Two is: " + Math.round(100*cell2.offsetWidth/(cell1.offsetWidth+cell2.offsetWidth)) + "%");
36 document.write("</p><hr>");
38 </script>
39 </head>
41 <h1>Fixed Columns, Auto Span, Minwidth Table</h1>
43 <table width="1" id="one" cellpadding=0 cellspacing=0>
44 <tr>
45 <td width=100 id="one-one" class="one">
46 <td width=200 id="one-two" class="two">
47 </tr>
48 <tr>
49 <td colspan=2 class="span">
50 <div style="width:100px"></div>
51 </td>
52 </tr>
53 </table>
55 <script>
56 dumpWidths("one");
57 </script>
59 <table width="1" id="two" cellpadding=0 cellspacing=0>
60 <tr>
61 <td width=100 id="two-one" class="one">
62 <td width=200 id="two-two" class="two">
63 </tr>
64 <tr>
65 <td colspan=2 class="span">
66 <div style="width:600px"></div>
67 </td>
68 </tr>
69 </table>
71 <script>
72 dumpWidths("two");
73 </script>
75 <table width="1" id="three" cellpadding=0 cellspacing=0>
76 <tr>
77 <td width=100 id="three-one" class="one">Fixed cell in column one with some text.
78 <td width=200 id="three-two" class="two">Fixed cell in column two with a lot more text. Will the ratios be preserved?
79 </tr>
80 <tr>
81 <td colspan=2 class="span">
82 <div style="width:600px"></div>
83 </td>
84 </tr>
85 </table>
87 <script>
88 dumpWidths("three");
89 </script>
91 <table width="1" id="four" cellpadding=0 cellspacing=0>
92 <tr>
93 <td width=50 id="four-one" class="one"><div style="width:100px"></div>
94 <td width=100 id="four-two" class="two"><div style="width:250px"></div>
95 </tr>
96 <tr>
97 <td colspan=2 class="span">
98 <div style="width:600px"></div>
99 </td>
100 </tr>
101 </table>
103 <script>
104 dumpWidths("four");
105 </script>