blob: a56c204876f1f0f45c3aadd837b0b9e135e98814 [file] [log] [blame]
<!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>
<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>