Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 12 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-sizing/parsing/size-shorthand.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/shorthand-testcommon.js"></script>
<script>
// size is a property and a descriptor. The size property is a shorthand
// for width and height.
test_shorthand_value("size", "100px", {
"width": "100px",
"height": "100px"
});
test_shorthand_value("size", "100px 100px", {
"width": "100px",
"height": "100px"
});
test_shorthand_value("size", "100px 200px", {
"width": "100px",
"height": "200px"
});
test_shorthand_value("size", "auto", {
"width": "auto",
"height": "auto"
});
</script>