font-shorthand-serialization-001.html (897B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Test: font shorthand serialization</title> 4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> 5 <link rel="help" href="https://drafts.csswg.org/css-fonts-4/#propdef-font"> 6 <link rel="help" href="https://drafts.csswg.org/cssom/"> 7 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/1564"> 8 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1436031"> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 <div style="font: bold medium serif"></div> 12 <script> 13 test(function() { 14 assert_equals( 15 document.querySelector('div').style.font, "bold medium serif", 16 "Default values of the longhands don't get serialized on the font shorthand" 17 ); 18 }, "Default values of the longhands don't get serialized on the font shorthand"); 19 </script>