summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/quirks/class-names-across-iframes.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/quirks/class-names-across-iframes.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/quirks/class-names-across-iframes.html')
-rw-r--r--testing/web-platform/tests/quirks/class-names-across-iframes.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/web-platform/tests/quirks/class-names-across-iframes.html b/testing/web-platform/tests/quirks/class-names-across-iframes.html
new file mode 100644
index 0000000000..a40a0e9dc5
--- /dev/null
+++ b/testing/web-platform/tests/quirks/class-names-across-iframes.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<link rel="match" href="class-names-across-iframes-ref.html" />
+<html>
+<title>Verifies matching of class names across iframes with/without quirks</title>
+<body>
+<template><p class="Testing">text that should be green</p></template>
+
+<script>
+ /*
+ This test is a regression test for a bug in chrome. See
+ https://crbug.com/1474382. It triggers quirks mode in the iframe
+ and then exits quirks mode.
+ */
+ const iframe = document.createElement('iframe');
+ document.body.append(iframe);
+
+ const doc = iframe.contentWindow.document;
+
+ const data = document.querySelector('template').innerHTML;
+ const body = doc.createElement('body');
+ body.innerHTML = data;
+
+ doc.open();
+ doc.write(`<!DOCTYPE html><html><head><style>p.Testing{color:green;}</style></head><body>${data}</body></html>`);
+ doc.close();
+</script>
+</body>
+</html>