tor-browser

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

attr-style-media.html (567B)


      1 <!DOCTYPE html>
      2 <title>Media - SVG Style element</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 
      6 <svg>
      7 <style id=style1></style>
      8 <style id=style2 media="foo"></style>
      9 </svg>
     10 
     11 <script>
     12  test(() => {
     13    assert_equals(style1.media, "", "missing media reflects as empty string IDL attribute on the style element");
     14    assert_equals(style2.media, "foo", "media reflects correctly IDL attribute on the style element");
     15  }, "media attribute on SVG <style> elements should reflect correctly");
     16 </script>