haikuwebkit/LayoutTests/fast/selectors/checked-direct-adjacent-sty...

25 lines
1.6 KiB
Plaintext

Test direct adjacent style update on changes of the :checked state of input element.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Initial state is checked through the checked attribute.
PASS getComputedStyle(document.getElementById("foo-with-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-with-renderer")).backgroundColor is "rgb(255, 0, 0)"
PASS getComputedStyle(document.getElementById("foo-without-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-without-renderer")).backgroundColor is "rgb(255, 0, 0)"
Checking the boxes through API.
PASS getComputedStyle(document.getElementById("foo-with-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-with-renderer")).backgroundColor is "rgb(255, 0, 0)"
PASS getComputedStyle(document.getElementById("foo-without-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-without-renderer")).backgroundColor is "rgb(255, 0, 0)"
Unchecking through API
PASS getComputedStyle(document.getElementById("foo-with-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-with-renderer")).backgroundColor is "rgb(0, 255, 0)"
PASS getComputedStyle(document.getElementById("foo-without-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-without-renderer")).backgroundColor is "rgb(0, 255, 0)"
PASS successfullyParsed is true
TEST COMPLETE