OLD | NEW |
(Empty) | |
| 1 This test checks that text-indent parses properly the properties from CSS3 Text. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Test the initial value: |
| 7 PASS computedStyle.textIndent is '0px' |
| 8 PASS computedStyle.getPropertyValue('text-indent') is '0px' |
| 9 |
| 10 Value '10em': |
| 11 PASS e.style.textIndent is '10em' |
| 12 PASS e.style.getPropertyValue('text-indent') is '10em' |
| 13 PASS computedStyle.textIndent is '100px' |
| 14 PASS computedStyle.getPropertyValue('text-indent') is '100px' |
| 15 |
| 16 Value '20ex': |
| 17 PASS e.style.textIndent is '20ex' |
| 18 PASS e.style.getPropertyValue('text-indent') is '20ex' |
| 19 PASS computedStyle.textIndent is '200px' |
| 20 PASS computedStyle.getPropertyValue('text-indent') is '200px' |
| 21 |
| 22 Value '50%': |
| 23 PASS e.style.textIndent is '50%' |
| 24 PASS e.style.getPropertyValue('text-indent') is '50%' |
| 25 PASS computedStyle.textIndent is '50%' |
| 26 PASS computedStyle.getPropertyValue('text-indent') is '50%' |
| 27 |
| 28 Value 'calc(10px + 20px)': |
| 29 PASS e.style.textIndent is 'calc(30px)' |
| 30 PASS e.style.getPropertyValue('text-indent') is 'calc(30px)' |
| 31 PASS computedStyle.textIndent is '30px' |
| 32 PASS computedStyle.getPropertyValue('text-indent') is '30px' |
| 33 |
| 34 Value '10em each-line': |
| 35 PASS e.style.textIndent is '10em each-line' |
| 36 PASS e.style.getPropertyValue('text-indent') is '10em each-line' |
| 37 PASS computedStyle.textIndent is '100px each-line' |
| 38 PASS computedStyle.getPropertyValue('text-indent') is '100px each-line' |
| 39 |
| 40 Value 'each-line 10em': |
| 41 PASS e.style.textIndent is '10em each-line' |
| 42 PASS e.style.getPropertyValue('text-indent') is '10em each-line' |
| 43 PASS computedStyle.textIndent is '100px each-line' |
| 44 PASS computedStyle.getPropertyValue('text-indent') is '100px each-line' |
| 45 |
| 46 Value '20ex each-line': |
| 47 PASS e.style.textIndent is '20ex each-line' |
| 48 PASS e.style.getPropertyValue('text-indent') is '20ex each-line' |
| 49 PASS computedStyle.textIndent is '200px each-line' |
| 50 PASS computedStyle.getPropertyValue('text-indent') is '200px each-line' |
| 51 |
| 52 Value 'each-line 20ex': |
| 53 PASS e.style.textIndent is '20ex each-line' |
| 54 PASS e.style.getPropertyValue('text-indent') is '20ex each-line' |
| 55 PASS computedStyle.textIndent is '200px each-line' |
| 56 PASS computedStyle.getPropertyValue('text-indent') is '200px each-line' |
| 57 |
| 58 Value '30% each-line': |
| 59 PASS e.style.textIndent is '30% each-line' |
| 60 PASS e.style.getPropertyValue('text-indent') is '30% each-line' |
| 61 PASS computedStyle.textIndent is '30% each-line' |
| 62 PASS computedStyle.getPropertyValue('text-indent') is '30% each-line' |
| 63 |
| 64 Value 'each-line 30%': |
| 65 PASS e.style.textIndent is '30% each-line' |
| 66 PASS e.style.getPropertyValue('text-indent') is '30% each-line' |
| 67 PASS computedStyle.textIndent is '30% each-line' |
| 68 PASS computedStyle.getPropertyValue('text-indent') is '30% each-line' |
| 69 |
| 70 Value 'calc(10px + 20px) each-line': |
| 71 PASS e.style.textIndent is 'calc(30px) each-line' |
| 72 PASS e.style.getPropertyValue('text-indent') is 'calc(30px) each-line' |
| 73 PASS computedStyle.textIndent is '30px each-line' |
| 74 PASS computedStyle.getPropertyValue('text-indent') is '30px each-line' |
| 75 |
| 76 Value 'each-line calc(10px + 20px)': |
| 77 PASS e.style.textIndent is 'calc(30px) each-line' |
| 78 PASS e.style.getPropertyValue('text-indent') is 'calc(30px) each-line' |
| 79 PASS computedStyle.textIndent is '30px each-line' |
| 80 PASS computedStyle.getPropertyValue('text-indent') is '30px each-line' |
| 81 |
| 82 |
| 83 Invalid value test - '10m': |
| 84 PASS e.style.textIndent is '0px' |
| 85 PASS e.style.getPropertyValue('text-indent') is '0px' |
| 86 PASS computedStyle.textIndent is '0px' |
| 87 PASS computedStyle.getPropertyValue('text-indent') is '0px' |
| 88 |
| 89 Invalid value test - '10m each-line': |
| 90 PASS e.style.textIndent is '0px' |
| 91 PASS e.style.getPropertyValue('text-indent') is '0px' |
| 92 PASS computedStyle.textIndent is '0px' |
| 93 PASS computedStyle.getPropertyValue('text-indent') is '0px' |
| 94 |
| 95 Invalid value test - 'each-line 10m': |
| 96 PASS e.style.textIndent is '0px' |
| 97 PASS e.style.getPropertyValue('text-indent') is '0px' |
| 98 PASS computedStyle.textIndent is '0px' |
| 99 PASS computedStyle.getPropertyValue('text-indent') is '0px' |
| 100 |
| 101 Invalid value test - '10em 10em': |
| 102 PASS e.style.textIndent is '0px' |
| 103 PASS e.style.getPropertyValue('text-indent') is '0px' |
| 104 PASS computedStyle.textIndent is '0px' |
| 105 PASS computedStyle.getPropertyValue('text-indent') is '0px' |
| 106 |
| 107 Invalid value test - 'each-line': |
| 108 PASS e.style.textIndent is '0px' |
| 109 PASS e.style.getPropertyValue('text-indent') is '0px' |
| 110 PASS computedStyle.textIndent is '0px' |
| 111 PASS computedStyle.getPropertyValue('text-indent') is '0px' |
| 112 |
| 113 Invalid value test - '10em each-line 10em': |
| 114 PASS e.style.textIndent is '0px' |
| 115 PASS e.style.getPropertyValue('text-indent') is '0px' |
| 116 PASS computedStyle.textIndent is '0px' |
| 117 PASS computedStyle.getPropertyValue('text-indent') is '0px' |
| 118 |
| 119 Invalid value test - 'each-line 10em each-line': |
| 120 PASS e.style.textIndent is '0px' |
| 121 PASS e.style.getPropertyValue('text-indent') is '0px' |
| 122 PASS computedStyle.textIndent is '0px' |
| 123 PASS computedStyle.getPropertyValue('text-indent') is '0px' |
| 124 |
| 125 PASS successfullyParsed is true |
| 126 |
| 127 TEST COMPLETE |
| 128 |
OLD | NEW |