tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

matching-brackets-002.xht (1415B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
      2                       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4  <head>
      5   <title>CSS Test: Matching brackets and quotes for declarations</title>
      6   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
      7   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/media.html#at-media-rule"/>
      9   <link rel="match" href="matching-brackets-002-ref.xht"/>
     10   <meta name="flags" content="invalid"/>
     11   <meta name="assert" content="User agents must handle unexpected tokens
     12     encountered while parsing a declaration by reading until the end of the
     13     statement, while observing the rules for matching pairs of brackets
     14     and quotes, and correctly handling escapes. "/>
     15   <style type="text/css"><![CDATA[
     16     p {
     17       background: red;
     18       color: green;
     19       color: red ] ) test-token \
     20        ~ ` ! @ # $ % ^ & * - _ + = | : > < ? / , .
     21        [\]\5D ']' "]"; background: red; } p { color: red; } ]
     22        (\)\29 ')' ")"; background: red; } p { color: red; } )
     23        '\'; background: red; } p { color: red; }',
     24        "\"; background: red; } p { color: red; }' p { color: red; } "
     25       ;
     26       background: white;
     27     }
     28   ]]></style>
     29  </head>
     30  <body>
     31   <p>This sentence must be green.</p>
     32  </body>
     33 </html>