OLD | NEW |
(Empty) | |
| 1 Test to make sure text-decoration property is backwards compatible with CSS 2.1
and CSS 3 shorthand. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Initial values: |
| 7 PASS e.style.getPropertyCSSValue('text-decoration') is null |
| 8 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid
rgb(0, 0, 0)' |
| 9 PASS checkComputedStyleValue() is true |
| 10 |
| 11 CSS2.1 backwards compatibility ("text-decoration: underline overline line-throug
h blink;"): |
| 12 PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'underline o
verline line-through blink' |
| 13 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'under
line overline line-through' |
| 14 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline
overline line-through solid rgb(0, 0, 0)' |
| 15 PASS checkComputedStyleValue() is true |
| 16 |
| 17 CSS3 Shorthand ("text-decoration: underline overline line-through blink dashed r
ed;"): |
| 18 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline
overline line-through dashed rgb(255, 0, 0)' |
| 19 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'under
line overline line-through' |
| 20 PASS computedStyle.getPropertyCSSValue('text-decoration-style').cssText is 'dash
ed' |
| 21 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
255, 0, 0)' |
| 22 PASS checkComputedStyleValue() is true |
| 23 |
| 24 Omitting text decoration line resets to its initial value "none" ("text-decorati
on: navy dotted;"): |
| 25 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none dotte
d rgb(0, 0, 128)' |
| 26 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'none' |
| 27 PASS computedStyle.getPropertyCSSValue('text-decoration-style').cssText is 'dott
ed' |
| 28 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
0, 0, 128)' |
| 29 PASS checkComputedStyleValue() is true |
| 30 |
| 31 PASS successfullyParsed is true |
| 32 |
| 33 TEST COMPLETE |
| 34 |
OLD | NEW |