blob: 9772a9a10e030535c1a435d2ba36ed8636e2e475 [file] [log] [blame]
This test checks that style.borderSpacing returns the correct result for valid, negative, and missing border-spacing values.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Valid values:
PASS document.getElementById("infer-vertical-border-spacing").style.borderSpacing is "4px"
PASS document.getElementById("explicit-border-spacing").style.borderSpacing is "4px 5px"
PASS computedStyle(document.getElementById("computed-infer-vertical-border-spacing")).borderSpacing is "11px 11px"
PASS cssRule("#computed-infer-vertical-border-spacing").style.borderSpacing is "11px"
PASS computedStyle(document.getElementById("computed-explicit-border-spacing")).borderSpacing is "13px 23px"
PASS cssRule("#computed-explicit-border-spacing").style.borderSpacing is "13px 23px"
Negative values:
PASS document.getElementById("infer-vertical-border-spacing-from-negative-horizontal-spacing").style.borderSpacing is ""
PASS document.getElementById("explicit-negative-border-spacing").style.borderSpacing is ""
PASS document.getElementById("explicit-border-spacing-with-negative-horizontal").style.borderSpacing is ""
PASS document.getElementById("explicit-border-spacing-with-negative-vertical").style.borderSpacing is ""
PASS cssRule("#computed-infer-vertical-border-spacing-from-negative-horizontal-border-spacing").style.borderSpacing is ""
PASS cssRule("#computed-explicit-negative-border-spacing").style.borderSpacing is ""
PASS cssRule("#computed-explicit-border-spacing-with-negative-horizontal").style.borderSpacing is ""
PASS cssRule("#computed-explicit-border-spacing-with-negative-vertical").style.borderSpacing is ""
Missing values:
PASS document.getElementById("missing-border-spacing").style.borderSpacing is ""
PASS cssRule("#missing-stylesheet-border-spacing").style.borderSpacing is ""
TEST COMPLETE