Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / incorrect-colgroup-span-values.html
blob3b7599144a45b84cf9dda7e860389bca250e8022
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script type="text/javascript" charset="utf-8">
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 function test()
11 description("This test checks that invalid 'span' values are rejected.");
13 // Remove "span" attribute (set it to null).
14 document.getElementById("case1").removeAttribute("span");
16 shouldBe("document.getElementById('case1').span", "1");
17 shouldBe("document.getElementById('case2').span", "1");
18 shouldBe("document.getElementById('case3').span", "1");
19 shouldBe("document.getElementById('case4').span", "1");
20 shouldBe("document.getElementById('case5').span", "1");
21 shouldBe("document.getElementById('case6').span", "1");
23 </script>
24 </head>
25 <body>
26 <table>
27 <colgroup id="case1" span="10000000000">
28 <th></th>
29 </colgroup>
30 </table>
31 <table>
32 <colgroup id="case2" span="0">
33 <th></th>
34 </colgroup>
35 </table>
36 <table>
37 <colgroup id="case3" span="10000000000">
38 <th></th>
39 </colgroup>
40 </table>
41 <table>
42 <colgroup id="case4" span="-10000000000">
43 <th></th>
44 </colgroup>
45 </table>
46 <table>
47 <colgroup id="case5" span="Szeged">
48 <th></th>
49 </colgroup>
50 </table>
51 <table>
52 <colgroup>
53 <col id="case6" span="...">
54 </colgroup>
55 </table>
56 <script>
57 test();
58 </script>
59 </body>
60 </html>