tor-browser

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

cssstyledeclaration-properties.html (875B)


      1 <!doctype html>
      2 <title>CSS Test: CSSStyleDeclaration properties are defined as WebIDL attributes, not using getOwnPropertyNames()</title>
      3 <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
      4 <link rel="author" href="https://mozilla.org" title="Mozilla">
      5 <link rel="help" href="https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-_camel_cased_attribute">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script>
      9  test(function() {
     10    let declaration = document.documentElement.style;
     11    assert_true(declaration instanceof CSSStyleDeclaration, "Should be a CSStyleDeclaration");
     12    assert_true("color" in declaration, "Should support the color property");
     13    assert_false(declaration.hasOwnProperty("color"), "shouldn't have an own property for WebIDL attributes");
     14  });
     15 </script>