OLD | NEW |
(Empty) | |
| 1 Test style update of the :placeholder-shown pseudo class. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Initial state is without placehoder. |
| 7 PASS getComputedStyle(document.getElementById("input-with-renderer")).background
Color is "rgb(255, 255, 255)" |
| 8 PASS getComputedStyle(document.getElementById("textarea-with-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 9 PASS getComputedStyle(document.getElementById("input-without-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 10 PASS getComputedStyle(document.getElementById("textarea-without-renderer")).back
groundColor is "rgb(255, 255, 255)" |
| 11 Adding a placeholder matches. |
| 12 PASS getComputedStyle(document.getElementById("input-with-renderer")).background
Color is "rgb(1, 2, 3)" |
| 13 PASS getComputedStyle(document.getElementById("textarea-with-renderer")).backgro
undColor is "rgb(1, 2, 3)" |
| 14 PASS getComputedStyle(document.getElementById("input-without-renderer")).backgro
undColor is "rgb(1, 2, 3)" |
| 15 PASS getComputedStyle(document.getElementById("textarea-without-renderer")).back
groundColor is "rgb(1, 2, 3)" |
| 16 Adding a placehoder and an empty value. An empty value does not prevent matching
. |
| 17 PASS getComputedStyle(document.getElementById("input-with-renderer")).background
Color is "rgb(1, 2, 3)" |
| 18 PASS getComputedStyle(document.getElementById("textarea-with-renderer")).backgro
undColor is "rgb(1, 2, 3)" |
| 19 PASS getComputedStyle(document.getElementById("input-without-renderer")).backgro
undColor is "rgb(1, 2, 3)" |
| 20 PASS getComputedStyle(document.getElementById("textarea-without-renderer")).back
groundColor is "rgb(1, 2, 3)" |
| 21 Changing the type of the input to something that does not support placeholder. T
he input element should not match. |
| 22 PASS getComputedStyle(document.getElementById("input-with-renderer")).background
Color is "rgb(255, 255, 255)" |
| 23 PASS getComputedStyle(document.getElementById("textarea-with-renderer")).backgro
undColor is "rgb(1, 2, 3)" |
| 24 PASS getComputedStyle(document.getElementById("input-without-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 25 PASS getComputedStyle(document.getElementById("textarea-without-renderer")).back
groundColor is "rgb(1, 2, 3)" |
| 26 Changing the type of the input to text should add the style back. |
| 27 PASS getComputedStyle(document.getElementById("input-with-renderer")).background
Color is "rgb(1, 2, 3)" |
| 28 PASS getComputedStyle(document.getElementById("textarea-with-renderer")).backgro
undColor is "rgb(1, 2, 3)" |
| 29 PASS getComputedStyle(document.getElementById("input-without-renderer")).backgro
undColor is "rgb(1, 2, 3)" |
| 30 PASS getComputedStyle(document.getElementById("textarea-without-renderer")).back
groundColor is "rgb(1, 2, 3)" |
| 31 Adding a non empty value should remove the style. |
| 32 PASS getComputedStyle(document.getElementById("input-with-renderer")).background
Color is "rgb(255, 255, 255)" |
| 33 PASS getComputedStyle(document.getElementById("textarea-with-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 34 PASS getComputedStyle(document.getElementById("input-without-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 35 PASS getComputedStyle(document.getElementById("textarea-without-renderer")).back
groundColor is "rgb(255, 255, 255)" |
| 36 Removing the placeholder, we should not match. |
| 37 PASS getComputedStyle(document.getElementById("input-with-renderer")).background
Color is "rgb(255, 255, 255)" |
| 38 PASS getComputedStyle(document.getElementById("textarea-with-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 39 PASS getComputedStyle(document.getElementById("input-without-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 40 PASS getComputedStyle(document.getElementById("textarea-without-renderer")).back
groundColor is "rgb(255, 255, 255)" |
| 41 Removing the value. We should still not match since the placeholder attribute wa
s removed. |
| 42 PASS getComputedStyle(document.getElementById("input-with-renderer")).background
Color is "rgb(255, 255, 255)" |
| 43 PASS getComputedStyle(document.getElementById("textarea-with-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 44 PASS getComputedStyle(document.getElementById("input-without-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 45 PASS getComputedStyle(document.getElementById("textarea-without-renderer")).back
groundColor is "rgb(255, 255, 255)" |
| 46 Putting back a value, no reason to match. |
| 47 PASS getComputedStyle(document.getElementById("input-with-renderer")).background
Color is "rgb(255, 255, 255)" |
| 48 PASS getComputedStyle(document.getElementById("textarea-with-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 49 PASS getComputedStyle(document.getElementById("input-without-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 50 PASS getComputedStyle(document.getElementById("textarea-without-renderer")).back
groundColor is "rgb(255, 255, 255)" |
| 51 Adding back the placeholder, the value is still there so we cannot match yet. |
| 52 PASS getComputedStyle(document.getElementById("input-with-renderer")).background
Color is "rgb(255, 255, 255)" |
| 53 PASS getComputedStyle(document.getElementById("textarea-with-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 54 PASS getComputedStyle(document.getElementById("input-without-renderer")).backgro
undColor is "rgb(255, 255, 255)" |
| 55 PASS getComputedStyle(document.getElementById("textarea-without-renderer")).back
groundColor is "rgb(255, 255, 255)" |
| 56 Removing the value. A placeholder was added while the value was up, we should ge
t the style now. |
| 57 PASS getComputedStyle(document.getElementById("input-with-renderer")).background
Color is "rgb(1, 2, 3)" |
| 58 PASS getComputedStyle(document.getElementById("textarea-with-renderer")).backgro
undColor is "rgb(1, 2, 3)" |
| 59 PASS getComputedStyle(document.getElementById("input-without-renderer")).backgro
undColor is "rgb(1, 2, 3)" |
| 60 PASS getComputedStyle(document.getElementById("textarea-without-renderer")).back
groundColor is "rgb(1, 2, 3)" |
| 61 PASS successfullyParsed is true |
| 62 |
| 63 TEST COMPLETE |
| 64 |
OLD | NEW |