tor-browser

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

calc-positive-fraction-001.html (1112B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5  <title>CSS Test: calc() with positive fraction halfway between adjacent integers</title>
      6 
      7  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
      8  <link rel="help" href="https://www.w3.org/TR/css-values-4/#combine-integers">
      9  <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
     10 
     11  <style>
     12  div
     13    {
     14      height: 100px;
     15      position: absolute;
     16      width: 100px;
     17    }
     18 
     19  div#red-overlapped
     20    {
     21      background-color: red;
     22      z-index: 2;
     23    }
     24 
     25  div#green-overlapping
     26    {
     27      background-color: green;
     28      z-index: calc(3 / 2);
     29      /*
     30      should resolve to 'z-index: 2' since "values
     31      halfway between adjacent integers rounded
     32      towards positive infinity" and since
     33      div#green-overlapping is last in document
     34      tree order, then it should overlap
     35      div#red-overlapped
     36      */
     37    }
     38  </style>
     39 
     40  <p>Test passes if there is a filled green square and <strong>no red</strong>.
     41 
     42  <div id="red-overlapped"></div>
     43 
     44  <div id="green-overlapping"></div>