| OLD | NEW |
| 1 This tests check that text-indent parses properly the properties from CSS3 Text. | 1 This tests check that text-indent parses properly the properties from CSS3 Text. |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 Test the initial value: | 6 Test the initial value: |
| 7 PASS computedStyle.textIndent is '0px' | 7 PASS computedStyle.textIndent is '0px' |
| 8 PASS computedStyle.getPropertyValue('text-indent') is '0px' | 8 PASS computedStyle.getPropertyValue('text-indent') is '0px' |
| 9 | 9 |
| 10 Value '10em': | 10 Value '10em': |
| 11 PASS e.style.textIndent is '10em' | 11 PASS e.style.textIndent is '10em' |
| 12 PASS e.style.getPropertyValue('text-indent') is '10em' | 12 PASS e.style.getPropertyValue('text-indent') is '10em' |
| 13 PASS computedStyle.textIndent is '100px' | 13 PASS computedStyle.textIndent is '100px' |
| 14 PASS computedStyle.getPropertyValue('text-indent') is '100px' | 14 PASS computedStyle.getPropertyValue('text-indent') is '100px' |
| 15 | 15 |
| 16 Value '20ex': | 16 Value '20ex': |
| 17 PASS e.style.textIndent is '20ex' | 17 PASS e.style.textIndent is '20ex' |
| 18 PASS e.style.getPropertyValue('text-indent') is '20ex' | 18 PASS e.style.getPropertyValue('text-indent') is '20ex' |
| 19 PASS computedStyle.textIndent is '200px' | 19 FAIL computedStyle.textIndent should be 200px. Was 160px. |
| 20 PASS computedStyle.getPropertyValue('text-indent') is '200px' | 20 FAIL computedStyle.getPropertyValue('text-indent') should be 200px. Was 160px. |
| 21 | 21 |
| 22 Value '50%': | 22 Value '50%': |
| 23 PASS e.style.textIndent is '50%' | 23 PASS e.style.textIndent is '50%' |
| 24 PASS e.style.getPropertyValue('text-indent') is '50%' | 24 PASS e.style.getPropertyValue('text-indent') is '50%' |
| 25 PASS computedStyle.textIndent is '50%' | 25 PASS computedStyle.textIndent is '50%' |
| 26 PASS computedStyle.getPropertyValue('text-indent') is '50%' | 26 PASS computedStyle.getPropertyValue('text-indent') is '50%' |
| 27 | 27 |
| 28 Value 'calc(10px + 20px)': | 28 Value 'calc(10px + 20px)': |
| 29 PASS e.style.textIndent is 'calc(10px + 20px)' | 29 PASS e.style.textIndent is 'calc(10px + 20px)' |
| 30 PASS e.style.getPropertyValue('text-indent') is 'calc(10px + 20px)' | 30 PASS e.style.getPropertyValue('text-indent') is 'calc(10px + 20px)' |
| 31 PASS computedStyle.textIndent is '30px' | 31 PASS computedStyle.textIndent is '30px' |
| 32 PASS computedStyle.getPropertyValue('text-indent') is '30px' | 32 PASS computedStyle.getPropertyValue('text-indent') is '30px' |
| 33 | 33 |
| 34 Value '10em -webkit-each-line': | 34 Value '10em -webkit-each-line': |
| 35 PASS e.style.textIndent is '10em -webkit-each-line' | 35 FAIL e.style.textIndent should be 10em -webkit-each-line. Was calc(10px + 20px). |
| 36 PASS e.style.getPropertyValue('text-indent') is '10em -webkit-each-line' | 36 FAIL e.style.getPropertyValue('text-indent') should be 10em -webkit-each-line. W
as calc(10px + 20px). |
| 37 PASS computedStyle.textIndent is '100px -webkit-each-line' | 37 FAIL computedStyle.textIndent should be 100px -webkit-each-line. Was 30px. |
| 38 PASS computedStyle.getPropertyValue('text-indent') is '100px -webkit-each-line' | 38 FAIL computedStyle.getPropertyValue('text-indent') should be 100px -webkit-each-
line. Was 30px. |
| 39 | 39 |
| 40 Value '-webkit-each-line 10em': | 40 Value '-webkit-each-line 10em': |
| 41 PASS e.style.textIndent is '10em -webkit-each-line' | 41 FAIL e.style.textIndent should be 10em -webkit-each-line. Was calc(10px + 20px). |
| 42 PASS e.style.getPropertyValue('text-indent') is '10em -webkit-each-line' | 42 FAIL e.style.getPropertyValue('text-indent') should be 10em -webkit-each-line. W
as calc(10px + 20px). |
| 43 PASS computedStyle.textIndent is '100px -webkit-each-line' | 43 FAIL computedStyle.textIndent should be 100px -webkit-each-line. Was 30px. |
| 44 PASS computedStyle.getPropertyValue('text-indent') is '100px -webkit-each-line' | 44 FAIL computedStyle.getPropertyValue('text-indent') should be 100px -webkit-each-
line. Was 30px. |
| 45 | 45 |
| 46 Value '20ex -webkit-each-line': | 46 Value '20ex -webkit-each-line': |
| 47 PASS e.style.textIndent is '20ex -webkit-each-line' | 47 FAIL e.style.textIndent should be 20ex -webkit-each-line. Was calc(10px + 20px). |
| 48 PASS e.style.getPropertyValue('text-indent') is '20ex -webkit-each-line' | 48 FAIL e.style.getPropertyValue('text-indent') should be 20ex -webkit-each-line. W
as calc(10px + 20px). |
| 49 PASS computedStyle.textIndent is '200px -webkit-each-line' | 49 FAIL computedStyle.textIndent should be 200px -webkit-each-line. Was 30px. |
| 50 PASS computedStyle.getPropertyValue('text-indent') is '200px -webkit-each-line' | 50 FAIL computedStyle.getPropertyValue('text-indent') should be 200px -webkit-each-
line. Was 30px. |
| 51 | 51 |
| 52 Value '-webkit-each-line 20ex': | 52 Value '-webkit-each-line 20ex': |
| 53 PASS e.style.textIndent is '20ex -webkit-each-line' | 53 FAIL e.style.textIndent should be 20ex -webkit-each-line. Was calc(10px + 20px). |
| 54 PASS e.style.getPropertyValue('text-indent') is '20ex -webkit-each-line' | 54 FAIL e.style.getPropertyValue('text-indent') should be 20ex -webkit-each-line. W
as calc(10px + 20px). |
| 55 PASS computedStyle.textIndent is '200px -webkit-each-line' | 55 FAIL computedStyle.textIndent should be 200px -webkit-each-line. Was 30px. |
| 56 PASS computedStyle.getPropertyValue('text-indent') is '200px -webkit-each-line' | 56 FAIL computedStyle.getPropertyValue('text-indent') should be 200px -webkit-each-
line. Was 30px. |
| 57 | 57 |
| 58 Value '30% -webkit-each-line': | 58 Value '30% -webkit-each-line': |
| 59 PASS e.style.textIndent is '30% -webkit-each-line' | 59 FAIL e.style.textIndent should be 30% -webkit-each-line. Was calc(10px + 20px). |
| 60 PASS e.style.getPropertyValue('text-indent') is '30% -webkit-each-line' | 60 FAIL e.style.getPropertyValue('text-indent') should be 30% -webkit-each-line. Wa
s calc(10px + 20px). |
| 61 PASS computedStyle.textIndent is '30% -webkit-each-line' | 61 FAIL computedStyle.textIndent should be 30% -webkit-each-line. Was 30px. |
| 62 PASS computedStyle.getPropertyValue('text-indent') is '30% -webkit-each-line' | 62 FAIL computedStyle.getPropertyValue('text-indent') should be 30% -webkit-each-li
ne. Was 30px. |
| 63 | 63 |
| 64 Value '-webkit-each-line 30%': | 64 Value '-webkit-each-line 30%': |
| 65 PASS e.style.textIndent is '30% -webkit-each-line' | 65 FAIL e.style.textIndent should be 30% -webkit-each-line. Was calc(10px + 20px). |
| 66 PASS e.style.getPropertyValue('text-indent') is '30% -webkit-each-line' | 66 FAIL e.style.getPropertyValue('text-indent') should be 30% -webkit-each-line. Wa
s calc(10px + 20px). |
| 67 PASS computedStyle.textIndent is '30% -webkit-each-line' | 67 FAIL computedStyle.textIndent should be 30% -webkit-each-line. Was 30px. |
| 68 PASS computedStyle.getPropertyValue('text-indent') is '30% -webkit-each-line' | 68 FAIL computedStyle.getPropertyValue('text-indent') should be 30% -webkit-each-li
ne. Was 30px. |
| 69 | 69 |
| 70 Value 'calc(10px + 20px) -webkit-each-line': | 70 Value 'calc(10px + 20px) -webkit-each-line': |
| 71 PASS e.style.textIndent is 'calc(10px + 20px) -webkit-each-line' | 71 FAIL e.style.textIndent should be calc(10px + 20px) -webkit-each-line. Was calc(
10px + 20px). |
| 72 PASS e.style.getPropertyValue('text-indent') is 'calc(10px + 20px) -webkit-each-
line' | 72 FAIL e.style.getPropertyValue('text-indent') should be calc(10px + 20px) -webkit
-each-line. Was calc(10px + 20px). |
| 73 PASS computedStyle.textIndent is '30px -webkit-each-line' | 73 FAIL computedStyle.textIndent should be 30px -webkit-each-line. Was 30px. |
| 74 PASS computedStyle.getPropertyValue('text-indent') is '30px -webkit-each-line' | 74 FAIL computedStyle.getPropertyValue('text-indent') should be 30px -webkit-each-l
ine. Was 30px. |
| 75 | 75 |
| 76 Value '-webkit-each-line calc(10px + 20px)': | 76 Value '-webkit-each-line calc(10px + 20px)': |
| 77 PASS e.style.textIndent is 'calc(10px + 20px) -webkit-each-line' | 77 FAIL e.style.textIndent should be calc(10px + 20px) -webkit-each-line. Was calc(
10px + 20px). |
| 78 PASS e.style.getPropertyValue('text-indent') is 'calc(10px + 20px) -webkit-each-
line' | 78 FAIL e.style.getPropertyValue('text-indent') should be calc(10px + 20px) -webkit
-each-line. Was calc(10px + 20px). |
| 79 PASS computedStyle.textIndent is '30px -webkit-each-line' | 79 FAIL computedStyle.textIndent should be 30px -webkit-each-line. Was 30px. |
| 80 PASS computedStyle.getPropertyValue('text-indent') is '30px -webkit-each-line' | 80 FAIL computedStyle.getPropertyValue('text-indent') should be 30px -webkit-each-l
ine. Was 30px. |
| 81 | 81 |
| 82 | 82 |
| 83 Invalid value test - '10m': | 83 Invalid value test - '10m': |
| 84 PASS e.style.textIndent is '0px' | 84 PASS e.style.textIndent is '0px' |
| 85 PASS e.style.getPropertyValue('text-indent') is '0px' | 85 PASS e.style.getPropertyValue('text-indent') is '0px' |
| 86 PASS computedStyle.textIndent is '0px' | 86 PASS computedStyle.textIndent is '0px' |
| 87 PASS computedStyle.getPropertyValue('text-indent') is '0px' | 87 PASS computedStyle.getPropertyValue('text-indent') is '0px' |
| 88 | 88 |
| 89 Invalid value test - '10m -webkit-each-line': | 89 Invalid value test - '10m -webkit-each-line': |
| 90 PASS e.style.textIndent is '0px' | 90 PASS e.style.textIndent is '0px' |
| (...skipping 28 matching lines...) Expand all Loading... |
| 119 Invalid value test - '-webkit-each-line 10em -webkit-each-line': | 119 Invalid value test - '-webkit-each-line 10em -webkit-each-line': |
| 120 PASS e.style.textIndent is '0px' | 120 PASS e.style.textIndent is '0px' |
| 121 PASS e.style.getPropertyValue('text-indent') is '0px' | 121 PASS e.style.getPropertyValue('text-indent') is '0px' |
| 122 PASS computedStyle.textIndent is '0px' | 122 PASS computedStyle.textIndent is '0px' |
| 123 PASS computedStyle.getPropertyValue('text-indent') is '0px' | 123 PASS computedStyle.getPropertyValue('text-indent') is '0px' |
| 124 | 124 |
| 125 PASS successfullyParsed is true | 125 PASS successfullyParsed is true |
| 126 | 126 |
| 127 TEST COMPLETE | 127 TEST COMPLETE |
| 128 | 128 |
| OLD | NEW |