summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/cssom/font-shorthand-serialization.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/cssom/font-shorthand-serialization.html')
-rw-r--r--testing/web-platform/tests/css/cssom/font-shorthand-serialization.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/cssom/font-shorthand-serialization.html b/testing/web-platform/tests/css/cssom/font-shorthand-serialization.html
new file mode 100644
index 0000000000..29082f83ea
--- /dev/null
+++ b/testing/web-platform/tests/css/cssom/font-shorthand-serialization.html
@@ -0,0 +1,17 @@
+<!doctype html>
+<html>
+<meta charset="utf-8">
+<title>Serialization of font shorthand</title>
+<link rel="help" href="https://drafts.csswg.org/cssom-1/#serialize-a-css-declaration-block">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+<div id="target" style="font: 10px/1 Ahem;"></div>
+<script>
+ test(function() {
+ var target = document.getElementById('target');
+ assert_equals(target.style.cssText, 'font: 10px / 1 Ahem;');
+ assert_equals(target.style.font, '10px / 1 Ahem');
+ }, "The font shorthand should be serialized just like any other shorthand.");
+</script>
+</html>