tor-browser

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

shape-outside-gradient-computed.html (1798B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Lists: getComputedStyle().listStyleImage</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-shapes/#shape-outside-property">
      7 <meta name="assert" content="list-style-image computed value is as specified.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/computed-testcommon.js"></script>
     11 <style>
     12  #target {
     13    font-size: 40px;
     14  }
     15 </style>
     16 </head>
     17 <body>
     18 <div id="target"></div>
     19 <script>
     20 test_computed_value('shape-outside', 'linear-gradient(45deg, red calc(25% + 10px), blue 80%)', 'linear-gradient(45deg, rgb(255, 0, 0) calc(25% + 10px), rgb(0, 0, 255) 80%)');
     21 test_computed_value('shape-outside', 'linear-gradient(calc(90deg - 45deg), rgb(0, 128, 0), rgb(0, 0, 255)', 'linear-gradient(45deg, rgb(0, 128, 0), rgb(0, 0, 255))');
     22 
     23 test_computed_value('shape-outside', 'radial-gradient(circle at calc(10px + 5%), red, blue)', 'radial-gradient(circle at calc(5% + 10px) 50%, rgb(255, 0, 0), rgb(0, 0, 255))');
     24 test_computed_value('shape-outside', 'radial-gradient(ellipse calc(-0.5em + 10px) calc(0.5em + 10px) at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))', 'radial-gradient(0px 30px at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))');
     25 test_computed_value('shape-outside', 'radial-gradient(black 0% 0.5em, 25%, green 30% 60%, calc(100% * 3 / 4), white calc(100% - 20%) 100%', 'radial-gradient(rgb(0, 0, 0) 0%, rgb(0, 0, 0) 20px, 25%, rgb(0, 128, 0) 30%, rgb(0, 128, 0) 60%, 75%, rgb(255, 255, 255) 80%, rgb(255, 255, 255) 100%)');
     26 
     27 test_computed_value('shape-outside', 'conic-gradient(from 0.5turn at 20% 30%, red, blue calc(50% - 25%))', 'conic-gradient(from 180deg at 20% 30%, rgb(255, 0, 0), rgb(0, 0, 255) 25%)');
     28 </script>
     29 </body>
     30 </html>