tor-browser

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

svg-document-styles-014.html (1648B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms Test: Invalid document and presentation attribute styles on an SVG element using rotate with three arguments</title>
      5    <link rel="author" title="David Alcala" href="mailto:dalcala@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="help" href="http://www.w3.org/TR/css-transforms-1/#svg-transform-functions">
      9    <link rel="match" href="reference/svg-document-styles-ref.html">
     10    <meta name="flags" content="svg">
     11    <meta name="assert" content="When both the document and presentation attribute styles are invalid, no transform should be applied. The rect in the test should not be scaled down or rotated.">
     12    <style type="text/css">
     13        svg {
     14            height: 300px;
     15            width: 300px;
     16        }
     17        rect.testRect {
     18            transform: scale(invalid);
     19        }
     20    </style>
     21 </head>
     22 <body>
     23    <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>
     24    <svg>
     25        <!-- Fill with Gradient to avoid false positive. -->
     26        <defs>
     27            <linearGradient id="grad">
     28                <stop offset="50%" stop-color="green"/>
     29                <stop offset="50%" stop-color="yellow"/>
     30            </linearGradient>
     31        </defs>
     32        <rect x="1" y="1" width="98" height="98" fill="red"/>
     33        <rect class="testRect" width="100" height="100" fill="url(#grad)" transform="rotate(90,invalid,invalid)"/>
     34    </svg>
     35 </body>
     36 </html>