mirror of
https://github.com/servo/servo.git
synced 2025-06-30 20:13:39 +01:00
16 lines
654 B
HTML
16 lines
654 B
HTML
<!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>
|