layout/reftests/css-parsing/at-rule-013.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
michael@0 2 <!--
michael@0 3 from the CSS 2.1 test suite,
michael@0 4 http://test.csswg.org/suites/css2.1/20110111/html4/at-rule-013.htm
michael@0 5
michael@0 6 See ../css3-namespace/LICENSE .
michael@0 7 -->
michael@0 8 <html>
michael@0 9 <head>
michael@0 10 <title>CSS Test: Ignoring at-rules inside @media blocks</title>
michael@0 11 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
michael@0 12 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors">
michael@0 13 <link rel="help" href="http://www.w3.org/TR/CSS21/media.html#at-media-rule">
michael@0 14 <meta name="flags" content="invalid">
michael@0 15 <meta name="assert" content="At-rules inside @media blocks are ignored up to up to the end of the block that contains the invalid at-keyword, or up to and including the next semicolon (;) or up to and including the next block ({...}), whichever comes first.">
michael@0 16 <style type="text/css">
michael@0 17 p {
michael@0 18 color: red;
michael@0 19 background: red;
michael@0 20 }
michael@0 21 @media all {
michael@0 22 #semicolon { background: transparent; }
michael@0 23 @foo ] & | # $ % test-token \
michael@0 24 [; # { background: red; } ]
michael@0 25 (; #semicolon { background: red; } } } } )
michael@0 26 '; #semicolon { background: red; } } } }',
michael@0 27 "; #semicolon { background: red; }' } } }"
michael@0 28 ;
michael@0 29 #semicolon { color: green; }
michael@0 30 }
michael@0 31 @media all {
michael@0 32 #block { background: transparent; }
michael@0 33 @foo ] & | # $ % test-token \
michael@0 34 [; #block { background: red; } ]
michael@0 35 (; #block { background: red; } )
michael@0 36 '; #block { background: red; }',
michael@0 37 "; #block { background: red; }'"
michael@0 38 {; #block { background: red; }
michael@0 39 #block { background: red; } }
michael@0 40 #block { color: green; }
michael@0 41 }
michael@0 42 @media all {
michael@0 43 #eob { background: transparent; }
michael@0 44 @import "support/import-red.css"
michael@0 45 }
michael@0 46 #eob {
michael@0 47 color: green;
michael@0 48 }
michael@0 49 @media all {
michael@0 50 #eob-complex { background: transparent; }
michael@0 51 @import "support/import-red.css"
michael@0 52 [; #eob-complex { background: red; } ]
michael@0 53 (; #eob-complex { background: red; } )
michael@0 54 '; #eob-complex { background: red; }',
michael@0 55 "; #eob-complex { background: red; }'"
michael@0 56 }
michael@0 57 #eob-complex {
michael@0 58 color: green;
michael@0 59 }
michael@0 60 </style>
michael@0 61 </head>
michael@0 62 <body>
michael@0 63 <p id="semicolon">This sentence must be green.</p>
michael@0 64 <p id="block">This sentence must be green.</p>
michael@0 65 <p id="eob">This sentence must be green.</p>
michael@0 66 <p id="eob-complex">This sentence must be green.</p>
michael@0 67 </body>
michael@0 68 </html>

mercurial