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

Unified Diff: LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-relative.html

Issue 16529003: Simplify 'position' adjustment of top layer elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/top-layer-position-relative-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-relative.html
diff --git a/LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-relative.html b/LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-relative.html
index d15e76286d937ae6167a4c6c8adae303949c2665..06cf7b07192fa6c620b26c3dd0fb88a131d07cd0 100644
--- a/LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-relative.html
+++ b/LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-relative.html
@@ -33,13 +33,14 @@ if (window.internals)
left: 200px;
}
</style>
+<script src="../../../resources/check-layout.js"></script>
</head>
-<body>
+<body onload="checkLayout('dialog')">
<p>Bug <a href="http://webkit.org/b/106538">106538</a>: Top layer fails for inline elements
<p>This tests that position 'relative' computes to 'absolute' in the top layer. The test passes if you see a single green box.</p>
<div id="left-div" class="green-box"></div>
-<dialog id="middle-dialog" class="green-box"></dialog>
-<dialog id="right-dialog" class="green-box"></dialog>
+<dialog id="middle-dialog" class="green-box" data-offset-x="150" data-offset-y="100"></dialog>
+<dialog id="right-dialog" class="green-box" data-offset-x="200" data-offset-y="100"></dialog>
<script>
document.getElementById('middle-dialog').showModal();
var rightDialog = document.getElementById('right-dialog');
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-relative-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698