tor-browser

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

svg-external-styles-001.html (1556B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Test: External transform style on SVG element with presentation attribute style on the same element</title>
      5    <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
      6    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-transform">
      7    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-attribute-specificity">
      8    <link rel="match" href="reference/svg-external-styles-ref.html">
      9    <link rel="stylesheet" href="support/svg-external-styles.css">
     10    <meta name="flags" content="svg">
     11    <meta name="assert" content="External styles on SVG elements should override presentation attribute styles on the same element. The rect in the test should be rotated by 90 degrees clockwise and not scaled.">
     12    <style type="text/css">
     13        svg {
     14            height: 300px;
     15            width: 300px;
     16        }
     17    </style>
     18 </head>
     19 <body>
     20    <p>The test passes if there is a vertical green stripe to the left of a yellow vertical stripe. You should see no red.</p>
     21    <svg>
     22        <!-- Fill with Gradient to avoid false positive. -->
     23        <defs>
     24            <linearGradient id="grad" x2="0%" y2="100%">
     25                <stop offset="50%" stop-color="yellow"/>
     26                <stop offset="50%" stop-color="green"/>
     27            </linearGradient>
     28        </defs>
     29        <rect x="1" y="1" width="98" height="98" fill="red"/>
     30        <rect class="rotate" y="-100" width="100" height="100" fill="url(#grad)" transform="scale(0.5)"/>
     31    </svg>
     32 </body>
     33 </html>