tor-browser

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

css3-modsel-161.xml (1777B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4  <title>Syntax and parsing of unknown pseudo-classes and pseudo-elements</title>
      5  <style type="text/css"><![CDATA[
      6  p { background: lime; }
      7  p   * { background: lime; }
      8  p > * { background: lime; }
      9  p + * { background: lime; }
     10  p ~ * { background: lime; }
     11 
     12  /* let's try some pseudos that are not valid CSS but are likely to
     13  be implemented as extensions in some UAs. These should not be
     14  recognised, as UAs implementing such extensions should use the
     15  :-vnd-ident syntax. */
     16 
     17  :canvas { background: red; }
     18  :viewport { background: red; }
     19  :window { background: red; }
     20  :menu { background: red; }
     21  :table { background: red; }
     22  :select { background: red; }
     23  ::canvas { background: red; }
     24  ::viewport { background: red; }
     25  ::window { background: red; }
     26  ::menu { background: red; }
     27  ::table { background: red; }
     28  ::select { background: red; }
     29 ]]></style>
     30  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
     31  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found -->
     32  <meta name="flags" content=" interact" />
     33 </head>
     34 <body>
     35 <p>This line should have a green background.</p>
     36 <p>
     37  UAs may render the following element as a pop up menu. If so, please ensure the menu is unstyled (or green).
     38  <select size="1">
     39   <option>This should</option>
     40   <option>have a green</option>
     41   <option>background.</option>
     42  </select>
     43 </p>
     44 <table><tr><td>This line should have a green background (or it might be unstyled).</td></tr></table>
     45 <!-- only allowed to be unstyled if + and ~ are not supported -->
     46 </body>
     47 </html>