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

Unified Diff: LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-static.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
Index: LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-static.html
diff --git a/LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-static.html b/LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-static.html
index 320412f333fcb83b18c8c5d8b3901ae23d4f35d3..68f0179e619b29b57628defb839a3b1d797506c5 100644
--- a/LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-static.html
+++ b/LayoutTests/fast/dom/HTMLDialogElement/top-layer-position-static.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 'static' 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');

Powered by Google App Engine
This is Rietveld 408576698