tor-browser

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

svg-document-styles-005.html (1573B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Test: Fall back to presentation attribute style of SVG element with invalid document transform style</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-document-styles-ref.html">
      9    <meta name="flags" content="svg">
     10    <meta name="assert" content="Invalid document transform styles on SVG elements should fall back to presentation attributes styles on the same element. The rect in the test should be rotated by 90 degrees clockwise.">
     11    <style type="text/css">
     12        svg {
     13            height: 300px;
     14            width: 300px;
     15        }
     16        rect.testRect {
     17            transform: scale(invalid);
     18        }
     19    </style>
     20 </head>
     21 <body>
     22    <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>
     23    <svg>
     24        <!-- Fill with Gradient to avoid false positive. -->
     25        <defs>
     26            <linearGradient id="grad" x2="0%" y2="100%">
     27                <stop offset="50%" stop-color="yellow"/>
     28                <stop offset="50%" stop-color="green"/>
     29            </linearGradient>
     30        </defs>
     31        <rect x="1" y="1" width="98" height="98" fill="red"/>
     32        <rect class="testRect" y="-100" width="100" height="100" fill="url(#grad)" transform="rotate(90)"/>
     33    </svg>
     34 </body>
     35 </html>