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-inline/text-box-trim/parsing/text-box-shorthand.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>text-box shorthand defaults omitted values per spec</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/shorthand-testcommon.js"></script>
<script>
test_shorthand_value('text-box', 'normal', {
'text-box-trim': 'none',
'text-box-edge': 'auto',
});
test_shorthand_value('text-box', 'none', {
'text-box-trim': 'none',
'text-box-edge': 'auto',
});
test_shorthand_value('text-box', 'trim-start', {
'text-box-trim': 'trim-start',
'text-box-edge': 'auto',
});
test_shorthand_value('text-box', 'ex text', {
'text-box-trim': 'trim-both',
'text-box-edge': 'ex text',
});
</script>