tor-browser

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

transform-percent-004.html (1041B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Test (Transforms): Percentages (translateX and translateY)</title>
      5    <link rel="author" title="Keith Schwarz" href="mailto:keith@keithschwarz.com">
      6    <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
      7    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property">
      8    <meta name="assert" content="This is part of a series of tests that check
      9    that percentages in 'transform' values are evaluated relative to the
     10    transformed element's border box.">
     11    <link rel="match" href="transform-percent-ref.html">
     12    <link rel="mismatch" href="transform-percent-notref.html">
     13    <style>
     14      div {
     15        width: 100px;
     16        height: 50px;
     17        background: gold;
     18        position: absolute;
     19        left: 100px;
     20        top: 100px;
     21        transform: rotate(10deg) translatex(50%) rotate(10deg)
     22                   translatey(100%) skewx(10deg) translate(25px, 25px);
     23      }
     24    </style>
     25  </head>
     26  <body>
     27    <div></div>
     28  </body>
     29 </html>