Skip to content

Commit

Permalink
Test the serialization of the font shorthand.
Browse files Browse the repository at this point in the history
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1436031
gecko-commit: 7806af854343c043a2645a4034fdc7812f65daad
gecko-integration-branch: central
gecko-reviewers: xidorn
  • Loading branch information
emilio authored and moz-wptsync-bot committed Feb 16, 2018
1 parent 0086900 commit b6df67b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions css/css-fonts/font-shorthand-serialization-001.html
@@ -0,0 +1,19 @@
<!doctype html>
<meta charset="utf-8">
<title>CSS Test: font shorthand serialization</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#propdef-font">
<link rel="help" href="https://drafts.csswg.org/cssom/">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/1564">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1436031">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div style="font: bold medium serif"></div>
<script>
test(function() {
assert_equals(
document.querySelector('div').style.font, "bold medium serif",
"Default values of the longhands don't get serialized on the font shorthand"
);
}, "Default values of the longhands don't get serialized on the font shorthand");
</script>

0 comments on commit b6df67b

Please sign in to comment.