blob: 42a2e1c3155716f3bb9a548f66cf7dddd4d5417a [file] [log] [blame]
Test style update of the :placeholder-shown pseudo class.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Initial state is without placehoder.
PASS getComputedStyle(document.getElementById("target1")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("target2")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("target3")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("target4")).backgroundColor is "rgb(255, 255, 255)"
Adding a placeholder, the targets should match the style.
PASS getComputedStyle(document.getElementById("target1")).backgroundColor is "rgb(1, 2, 3)"
PASS getComputedStyle(document.getElementById("target2")).backgroundColor is "rgb(1, 2, 3)"
PASS getComputedStyle(document.getElementById("target3")).backgroundColor is "rgb(1, 2, 3)"
PASS getComputedStyle(document.getElementById("target4")).backgroundColor is "rgb(1, 2, 3)"
PASS successfullyParsed is true
TEST COMPLETE