tor-browser

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

outline-014.html (1071B)


      1 <!doctype html>
      2 <html lang=en>
      3  <meta charset=utf-8>
      4  <title>CSS-UI test: outline-offset width negative values — long box</title>
      5  <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net">
      6  <meta name=flags content="should">
      7  <meta name=assert content="Negative values on outline-offset should not cause the height and the width of outside of the shape drawn by the outline to become smaller than twice the computed value of the outline-width property, applying this constrain independenly in each direction.">
      8  <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      9  <link rel=help href="https://drafts.csswg.org/css-ui-3/#outline-props">
     10 <style>
     11 div {
     12  width: 100px;
     13  height: 100px;
     14  /* The borders makes the box rectangular rather than square */
     15  border-right: solid white 50px;
     16  border-left: solid white 50px;
     17  background: red;
     18  outline: solid 50px green;
     19  outline-offset: -100px;
     20  margin-left: -50px;
     21 }
     22 </style>
     23 
     24  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     25  <div></div>