tor-browser

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

line-break-var-substitution.html (605B)


      1 <!DOCTYPE html>
      2 <title>CSS Text: Setting line-break:anywhere with variable substitution</title>
      3 <link rel="help" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
      4 <link rel="help" href="https://crbug.com/441536815">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <style>
      8  #target {
      9    --lb: anywhere;
     10    line-break: var(--lb);
     11  }
     12 </style>
     13 <div id="target"></div>
     14 <script>
     15  test(() => {
     16    assert_equals(getComputedStyle(target).lineBreak, "anywhere");
     17  }, "Test that line-break can be set with a var() substitution");
     18 </script>