tor-browser

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

font-shorthand-serialization.html (723B)


      1 <!doctype html>
      2 <html>
      3 <meta charset="utf-8">
      4 <title>Serialization of font shorthand</title>
      5 <link rel="help" href="https://drafts.csswg.org/cssom-1/#serialize-a-css-declaration-block">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      9 <div id="target" style="font: 10px/1 Ahem;"></div>
     10 <script>
     11    test(function() {
     12        var target = document.getElementById('target');
     13        assert_equals(target.style.cssText, 'font: 10px / 1 Ahem;');
     14        assert_equals(target.style.font, '10px / 1 Ahem');
     15    }, "The font shorthand should be serialized just like any other shorthand.");
     16 </script>
     17 </html>