blob: f384a3d0f68298b8852f337468d138160b41bb3e [file] [log] [blame]
Test that we do not invalidate the style of <form> excessively when matching :invalid based on the associated elements.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form1-with-renderer")) is false
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form2-with-renderer")) is false
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form1-without-renderer")) is false
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form2-without-renderer")) is false
PASS getComputedStyle(document.getElementById("form1-with-renderer")).color is "rgb(0, 0, 0)"
PASS getComputedStyle(document.getElementById("form2-with-renderer")).color is "rgb(0, 0, 0)"
PASS getComputedStyle(document.getElementById("form1-without-renderer")).color is "rgb(0, 0, 0)"
PASS getComputedStyle(document.getElementById("form2-without-renderer")).color is "rgb(0, 0, 0)"
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form1-with-renderer")) is true
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form2-with-renderer")) is true
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form1-without-renderer")) is true
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form2-without-renderer")) is true
PASS getComputedStyle(document.getElementById("form1-with-renderer")).color is "rgb(0, 1, 2)"
PASS getComputedStyle(document.getElementById("form2-with-renderer")).color is "rgb(0, 1, 2)"
PASS getComputedStyle(document.getElementById("form1-without-renderer")).color is "rgb(0, 1, 2)"
PASS getComputedStyle(document.getElementById("form2-without-renderer")).color is "rgb(0, 1, 2)"
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form1-with-renderer")) is false
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form2-with-renderer")) is false
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form1-without-renderer")) is false
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form2-without-renderer")) is false
PASS getComputedStyle(document.getElementById("form1-with-renderer")).color is "rgb(0, 1, 2)"
PASS getComputedStyle(document.getElementById("form2-with-renderer")).color is "rgb(0, 1, 2)"
PASS getComputedStyle(document.getElementById("form1-without-renderer")).color is "rgb(0, 1, 2)"
PASS getComputedStyle(document.getElementById("form2-without-renderer")).color is "rgb(0, 1, 2)"
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form1-with-renderer")) is false
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form2-with-renderer")) is false
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form1-without-renderer")) is false
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form2-without-renderer")) is false
PASS getComputedStyle(document.getElementById("form1-with-renderer")).color is "rgb(0, 1, 2)"
PASS getComputedStyle(document.getElementById("form2-with-renderer")).color is "rgb(0, 1, 2)"
PASS getComputedStyle(document.getElementById("form1-without-renderer")).color is "rgb(0, 1, 2)"
PASS getComputedStyle(document.getElementById("form2-without-renderer")).color is "rgb(0, 1, 2)"
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form1-with-renderer")) is true
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form2-with-renderer")) is true
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form1-without-renderer")) is true
PASS window.internals.nodeNeedsStyleRecalc(document.getElementById("form2-without-renderer")) is true
PASS getComputedStyle(document.getElementById("form1-with-renderer")).color is "rgb(0, 0, 0)"
PASS getComputedStyle(document.getElementById("form2-with-renderer")).color is "rgb(0, 0, 0)"
PASS getComputedStyle(document.getElementById("form1-without-renderer")).color is "rgb(0, 0, 0)"
PASS getComputedStyle(document.getElementById("form2-without-renderer")).color is "rgb(0, 0, 0)"
PASS successfullyParsed is true
TEST COMPLETE