blob: db9f208243907bea5381da8d1304dd54b956d2ef [file] [log] [blame]
eric@webkit.orgbfca1052010-01-08 21:31:31 +00001<html>
2<head>
3 <script type="text/javascript">
rniwa@webkit.org38608af2012-06-19 07:23:13 +00004 if (window.testRunner)
5 testRunner.dumpAsText();
eric@webkit.orgbfca1052010-01-08 21:31:31 +00006 </script>
7 <style>
8 .to_be_shown {
9 display:none;
10 color:green;
11 }
12 .to_be_hidden {
13 display:block;
14 color:red;
15 }
16
17 /* Expression containing an invalid block should be skipped */
18 #test1 {
19 behavior:expression((function(){})());
20 display:none;
21 }
eric@webkit.orgc78beb82010-01-19 02:53:16 +000022 #test2 {
23 behavior:expression(function(){}());
24 display:none;
25 }
eric@webkit.orgbfca1052010-01-08 21:31:31 +000026
27 /* Value containing an invalid block should be skipped */
28 .malformed1 {
29 height:{}
30 }
eric@webkit.orgc78beb82010-01-19 02:53:16 +000031 #test3 {
eric@webkit.orgbfca1052010-01-08 21:31:31 +000032 display:none;
33 }
34
35 /* Malformed declaration list should be skipped */
36 .malformed2 {
37 a:link { color: blue;}
38 a:active { color: red;}
39 }
eric@webkit.orgc78beb82010-01-19 02:53:16 +000040 #test4 {
eric@webkit.orgbfca1052010-01-08 21:31:31 +000041 display:none;
42 }
43
44 /* Successfully parsed */
45 #last {
46 display:block;
47 }
48 </style>
49</head>
50<body>
51 <div class="to_be_hidden" id="test1">FAIL: Test 1</div>
52 <div class="to_be_hidden" id="test2">FAIL: Test 2</div>
53 <div class="to_be_hidden" id="test3">FAIL: Test 3</div>
eric@webkit.orgc78beb82010-01-19 02:53:16 +000054 <div class="to_be_hidden" id="test4">FAIL: Test 4</div>
eric@webkit.orgbfca1052010-01-08 21:31:31 +000055 <div class="to_be_shown" id="last">PASS</div>
56</body>
57</html>
58