tor-browser

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

inheritance.html (1482B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>Inheritance of CSS Transforms properties</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-transforms/#property-index">
      7 <link rel="help" href="https://drafts.csswg.org/css-transforms-2/#property-index">
      8 <meta name="assert" content="Properties inherit or not according to the spec.">
      9 <meta name="assert" content="Properties have initial values according to the spec.">
     10 <script src="/resources/testharness.js"></script>
     11 <script src="/resources/testharnessreport.js"></script>
     12 <script src="/css/support/inheritance-testcommon.js"></script>
     13 </head>
     14 <body>
     15 <div id="container">
     16 <div id="target"></div>
     17 </div>
     18 <style>
     19 #container {
     20  width: 70px;
     21  height: 90px;
     22 }
     23 #target {
     24  width: 60px;
     25  height: 40px;
     26 }
     27 </style>
     28 <script>
     29 assert_not_inherited('backface-visibility', 'visible', 'hidden');
     30 assert_not_inherited('perspective', 'none', '7px');
     31 assert_not_inherited('perspective-origin', '30px 20px', '8px 9px'); // '50% 50%' is '30px 20px'
     32 assert_not_inherited('rotate', 'none', '90deg');
     33 assert_not_inherited('scale', 'none', '10 11 12');
     34 assert_not_inherited('transform', 'none', 'matrix(2, 0, 0, 3, 1, 4)');
     35 assert_not_inherited('transform-box', 'view-box', 'fill-box');
     36 assert_not_inherited('transform-origin', '30px 20px', '5px 6px'); // '50% 50%' is '30px 20px'
     37 assert_not_inherited('transform-style', 'flat', 'preserve-3d');
     38 assert_not_inherited('translate', 'none', '13px 14px 15px');
     39 </script>
     40 </body>
     41 </html>