tor-browser

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

position-area-computed-insets.html (1031B)


      1 <!DOCTYPE html>
      2 <title>CSS Anchor Positioning: position-area should not affect computed inset values</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-anchor-position/#position-area">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="/css/css-typed-om/resources/testhelper.js"></script>
      7 <style>
      8  #abs {
      9    position: absolute;
     10    position-area: span-all;
     11  }
     12 </style>
     13 <div id="abs"></div>
     14 <script>
     15  test(() => {
     16    let style = abs.computedStyleMap();
     17    assert_equals(style.get("position-area").toString(), "span-all", "position-area is supported");
     18    assert_style_value_equals(style.get("left"), new CSSKeywordValue("auto"));
     19    assert_style_value_equals(style.get("right"), new CSSKeywordValue("auto"));
     20    assert_style_value_equals(style.get("top"), new CSSKeywordValue("auto"));
     21    assert_style_value_equals(style.get("bottom"), new CSSKeywordValue("auto"));
     22  }, "position-area does not affect insets at computed value time");
     23 </script>