tor-browser

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

text-decoration-thickness-calc.html (2197B)


      1 <!DOCTYPE html>
      2 <meta charset="UTF-8">
      3 <title>text-decoration-thickness calc() support</title>
      4 <link rel="author" title="ChangSeok Oh" href="mailto:changseok@webkit.org" />
      5 <link rel="help" href="https://www.w3.org/TR/css-text-decor-4/#text-decoration-thickness-property" />
      6 <link rel="match" href="text-decoration-thickness-calc-ref.html" />
      7 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
      8 <meta name="assert" content="Test checks whether text-decoration-thickness supports calc() values.">
      9 <style type="text/css">
     10 div {
     11  display: flex;
     12  font-family: Ahem;
     13  font-size: 8px;
     14 }
     15 .underline {
     16  text-decoration-color: green;
     17  text-decoration-line: underline;
     18  text-decoration-skip-ink: none;
     19 }
     20 .overline {
     21  text-decoration-color: green;
     22  text-decoration-line: overline;
     23  text-decoration-skip-ink: none;
     24 }
     25 .line-through {
     26  text-decoration-color: green;
     27  text-decoration-line: line-through;
     28  text-decoration-skip-ink: none;
     29 }
     30 .ref {
     31  text-decoration-thickness: 8px;
     32 }
     33 .test1 {
     34  text-decoration-thickness: calc(1em);
     35 }
     36 .test2 {
     37  text-decoration-thickness: calc(100%);
     38 }
     39 .test3 {
     40  text-decoration-thickness: calc(50% + 4px);
     41 }
     42 .test4 {
     43  text-decoration-thickness: calc(50% + 0.5em);
     44 }
     45 .test5 {
     46  text-decoration-thickness: calc(0.5em + 4px);
     47 }
     48 </style>
     49 <p>Test passes if black and green bar pairs are the same shape and size.</p>
     50 <div>
     51  <span class="underline ref">X</span>
     52  <span class="underline test1">X</span>
     53  <span class="underline test2">X</span>
     54  <span class="underline test3">X</span>
     55  <span class="underline test4">X</span>
     56  <span class="underline test5">X</span>
     57 </div>
     58 <br>
     59 <br>
     60 <div>
     61  <span class="overline ref">X</span>
     62  <span class="overline test1">X</span>
     63  <span class="overline test2">X</span>
     64  <span class="overline test3">X</span>
     65  <span class="overline test4">X</span>
     66  <span class="overline test5">X</span>
     67 </div>
     68 <br>
     69 <div>
     70 <span class="ref">XXXXXX</span>
     71 </div>
     72 <div>
     73  <span class="line-through ref">X</span>
     74  <span class="line-through test1">X</span>
     75  <span class="line-through test2">X</span>
     76  <span class="line-through test3">X</span>
     77  <span class="line-through test4">X</span>
     78  <span class="line-through test5">X</span>
     79 </div>