Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: LayoutTests/fast/dom/HTMLDialogElement/dont-share-style-to-top-layer.html

Issue 150273003: Don't allow style sharing between top layer and non-top layer elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLDialogElement/dont-share-style-to-top-layer-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLDialogElement/dont-share-style-to-top-layer.html
diff --git a/LayoutTests/fast/dom/HTMLDialogElement/dont-share-style-to-top-layer.html b/LayoutTests/fast/dom/HTMLDialogElement/dont-share-style-to-top-layer.html
new file mode 100644
index 0000000000000000000000000000000000000000..1d0ad7d645091982bbebc6fa9e358ae6d96cd78e
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLDialogElement/dont-share-style-to-top-layer.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<style>
+dialog {
+ position: static;
+}
+</style>
+<p>Test that a non-top layer element doesn't share style with a top layer
+element. The test passes if you see two boxes.</p>
+<dialog open></dialog>
+<dialog id="modal"></dialog>
+<script>
+document.querySelector('#modal').showModal();
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLDialogElement/dont-share-style-to-top-layer-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698