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

Unified Diff: LayoutTests/fast/dom/HTMLDialogElement/resources/dialog-layout.css

Issue 342943002: Center fixpos <dialog> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm non-anchored-dialog-positioning-expected.txt Created 6 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/resources/dialog-layout.css
diff --git a/LayoutTests/fast/dom/HTMLDialogElement/resources/dialog-layout.css b/LayoutTests/fast/dom/HTMLDialogElement/resources/dialog-layout.css
new file mode 100644
index 0000000000000000000000000000000000000000..9d5a53ed4c366eec6698530c5ff527323164fdaf
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLDialogElement/resources/dialog-layout.css
@@ -0,0 +1,26 @@
+/* Remove body margin and dialog styles for easier positioning expected values */
+body {
+ height: 10000px;
+ margin: 0;
+}
+
+dialog {
+ border: 0;
+ padding: 0;
+ height: auto;
+ width: auto;
+}
+
+#absolute-div {
+ position: absolute;
+ top: 800px;
+ height: 50px;
+ width: 90%;
+}
+
+#relative-div {
+ position: relative;
+ top: 20px;
+ height: 30px;
+}
+

Powered by Google App Engine
This is Rietveld 408576698