Bug 1436031: Test the serialization of the font shorthand. r?xidorn draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Tue, 06 Feb 2018 23:49:42 +0100
changeset 751809 177236f1c268fbe964556ac16dcb39caeb7a183a
parent 751624 622bfbf26459c173d13d4292a065f2efa4c21ce7
push id98059
push userbmo:emilio@crisal.io
push dateTue, 06 Feb 2018 22:51:00 +0000
reviewersxidorn
bugs1436031
milestone60.0a1
Bug 1436031: Test the serialization of the font shorthand. r?xidorn MozReview-Commit-ID: K9IXzIZJfzM
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-fonts/font-shorthand-serialization-001.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -308409,16 +308409,22 @@
     ]
    ],
    "css/css-fonts/font-feature-settings-serialization-001.html": [
     [
      "/css/css-fonts/font-feature-settings-serialization-001.html",
      {}
     ]
    ],
+   "css/css-fonts/font-shorthand-serialization-001.html": [
+    [
+     "/css/css-fonts/font-shorthand-serialization-001.html",
+     {}
+    ]
+   ],
    "css/css-fonts/font-variant-alternates-parsing.html": [
     [
      "/css/css-fonts/font-variant-alternates-parsing.html",
      {}
     ]
    ],
    "css/css-fonts/test_datafont_same_origin.html": [
     [
@@ -485314,16 +485320,20 @@
   "css/css-fonts/font-kerning-05-ref.html": [
    "30b41e23ff0ba288d5d5c11f986da1ae520c99ea",
    "support"
   ],
   "css/css-fonts/font-kerning-05.html": [
    "d24da7a545f0e28e0ee41e1bd9263eafe54211d8",
    "reftest"
   ],
+  "css/css-fonts/font-shorthand-serialization-001.html": [
+   "003d315d72019673041c63b28a90f436c7e3855f",
+   "testharness"
+  ],
   "css/css-fonts/font-size-adjust-001.html": [
    "9c8cda6faa82407d5d236d25d07004405dfe93ac",
    "visual"
   ],
   "css/css-fonts/font-size-adjust-002.html": [
    "15d7f4802c6b1eeeead5b9cea6f61f21a0eee5f2",
    "visual"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/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>