tor-browser

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

html-precedence-003.xht (1375B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: User style sheet precedence</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
      7         <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
      8         <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
      9         <meta name="flags" content="userstyle" />
     10         <meta name="assert" content="The 'font' element's 'color' attribute trumps the user stylesheet's universal selector. They have the same specificity but the font element is a virtual author rule." />
     11         <style type="text/css">
     12             p
     13             {
     14                 color: black;
     15             }
     16             div
     17             {
     18                 color: red;
     19             }
     20         </style>
     21     </head>
     22     <body>
     23         <p id="htmlPrecedence003">PREREQUISITE: The <a href="support/html-precedence-003.css">"html-precedence-003.css"</a> file is enabled as the user agent's user style sheet.</p>
     24         <p>Test passes if the "Filler Text" below is green and it is underlined.</p>
     25         <div>
     26             <font color="green">Filler Text</font>
     27         </div>
     28     </body>
     29 </html>