eric@webkit.org | bfca105 | 2010-01-08 21:31:31 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <script type="text/javascript"> |
rniwa@webkit.org | 38608af | 2012-06-19 07:23:13 +0000 | [diff] [blame] | 4 | if (window.testRunner) |
| 5 | testRunner.dumpAsText(); |
eric@webkit.org | bfca105 | 2010-01-08 21:31:31 +0000 | [diff] [blame] | 6 | </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.org | c78beb8 | 2010-01-19 02:53:16 +0000 | [diff] [blame] | 22 | #test2 { |
| 23 | behavior:expression(function(){}()); |
| 24 | display:none; |
| 25 | } |
eric@webkit.org | bfca105 | 2010-01-08 21:31:31 +0000 | [diff] [blame] | 26 | |
| 27 | /* Value containing an invalid block should be skipped */ |
| 28 | .malformed1 { |
| 29 | height:{} |
| 30 | } |
eric@webkit.org | c78beb8 | 2010-01-19 02:53:16 +0000 | [diff] [blame] | 31 | #test3 { |
eric@webkit.org | bfca105 | 2010-01-08 21:31:31 +0000 | [diff] [blame] | 32 | 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.org | c78beb8 | 2010-01-19 02:53:16 +0000 | [diff] [blame] | 40 | #test4 { |
eric@webkit.org | bfca105 | 2010-01-08 21:31:31 +0000 | [diff] [blame] | 41 | 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.org | c78beb8 | 2010-01-19 02:53:16 +0000 | [diff] [blame] | 54 | <div class="to_be_hidden" id="test4">FAIL: Test 4</div> |
eric@webkit.org | bfca105 | 2010-01-08 21:31:31 +0000 | [diff] [blame] | 55 | <div class="to_be_shown" id="last">PASS</div> |
| 56 | </body> |
| 57 | </html> |
| 58 | |