<!DOCTYPE html>
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("Makes sure that CSS.supports() uses no-quirks mode.")

document.test1 = undefined;
document.test2 = undefined;

window.jsTestIsAsync = true;
</script>
<iframe id="frame1" src="resources/css-supports-document-parser-context-strict.html"></iframe>
<iframe id="frame2" src="resources/css-supports-document-parser-context-nonstrict.html"></iframe>
<script>
var frame1 = document.getElementById("frame1");
var frame2 = document.getElementById("frame2");

var counter = 0;
function listener() {
	++counter;
	if (counter == 2) {
		shouldBeFalse("document.test1");
		shouldBeFalse("document.test2");
		finishJSTest();
	}
}
frame1.addEventListener("load", listener);
frame2.addEventListener("load", listener);
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>