diff options
Diffstat (limited to 'testing/web-platform/tests/infrastructure/reftest/reftest.www.sub.html')
-rw-r--r-- | testing/web-platform/tests/infrastructure/reftest/reftest.www.sub.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/infrastructure/reftest/reftest.www.sub.html b/testing/web-platform/tests/infrastructure/reftest/reftest.www.sub.html new file mode 100644 index 0000000000..ccffd98f43 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/reftest/reftest.www.sub.html @@ -0,0 +1,10 @@ +<title>Tests that reftests obey the 'www' file-flag</title> +<link rel=match href=green.html> +<style> +:root {background-color:red} +</style> +<script> +if (location.hostname === "{{domains[www]}}") { + document.documentElement.style.backgroundColor = "green"; +} +</script> |