tor-browser

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

presentation-attributes-irrelevant.html (860B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>SVG presentation attributes - on irrelevant elements</title>
      4 <link rel="help" href="https://svgwg.org/svg2-draft/styling.html#PresentationAttributes">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script src="presentation-attributes.js"></script>
      8 <svg id="svg"></svg>
      9 <script>
     10 // Test that all of the presentation attributes with no special rules are
     11 // also supported on elements that the corresponding property does not
     12 // apply to.
     13 
     14 for (let p in PROPERTIES) {
     15  if (CSS.supports(p, "initial") && PROPERTIES[p].irrelevantElement) {
     16    test(function() {
     17      assertPresentationAttributeIsSupported(PROPERTIES[p].irrelevantElement, p, PROPERTIES[p].value, p);
     18    }, `${p} presentation attribute supported on an irrelevant element`);
     19  }
     20 }
     21 </script>