tor-browser

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

scroll-target-group-computed.html (1258B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: parsing scroll-target-group property computed values</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-target-group">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script src="/css/support/computed-testcommon.js"></script>
      8 <div id="target"></div>
      9 <script>
     10  test_computed_value('scroll-target-group', 'initial', 'none');
     11  test_computed_value('scroll-target-group', 'inherit', 'none');
     12  test_computed_value('scroll-target-group', 'unset', 'none');
     13  test_computed_value('scroll-target-group', 'revert', 'none');
     14 
     15  test_computed_value('scroll-target-group', 'none');
     16  test_computed_value('scroll-target-group', 'auto');
     17 
     18  test(() => {
     19    let style = getComputedStyle(document.getElementById('target'));
     20    assert_not_equals(Array.from(style).indexOf('scroll-target-group'), -1);
     21  }, 'The scroll-target-group property shows up in CSSStyleDeclaration enumeration');
     22 
     23  test(() => {
     24    let style = document.getElementById('target').style;
     25    assert_not_equals(style.cssText.indexOf('scroll-target-group'), -1);
     26  }, 'The scroll-target-group property shows up in CSSStyleDeclaration.cssText');
     27 </script>