tor-browser

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

style-attr-urls-003.xht (1169B)


      1 <html xmlns="http://www.w3.org/1999/xhtml">
      2  <head>
      3   <title>CSS Test: URLs in style attributes (with xml:base)</title>
      4   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
      5   <link rel="reviewer" title="Arron Eicholz" href="mailto:Arron.Eicholz@microsoft.com"/>
      6   <link rel="match" href="reference/ref-green-on-green.xht"/>
      7   <link rel="help" href="https://drafts.csswg.org/css-style-attr/#interpret"/>
      8   <meta http-equiv="Content-Style-Type" content="text/css" />
      9   <meta name="flags" content="image nonHTML" />
     10   <meta name="assert" content="xml:base is ignored when resolving URLs in style attributes."/>
     11   <!-- This test originally asserted that xml:base works, and xml:base is mentioned in
     12        https://www.w3.org/TR/2013/REC-css-style-attr-20131107/. Support for xml:base
     13        has been removed from browsers and it's no longer mentioned in the spec. -->
     14   <style type="text/css"><![CDATA[
     15     p { background-color: lime; color: green; }
     16   ]]></style>
     17  </head>
     18  <body>
     19   <p style="background-image: url(swatch-red.png)" xml:base="support/">
     20     This sentence must be green on a green background.
     21   </p>
     22  </body>
     23 </html>