Index: LayoutTests/fast/dom/HTMLDialogElement/fixpos-dialog-layout-expected.txt |
diff --git a/LayoutTests/fast/dom/HTMLDialogElement/fixpos-dialog-layout-expected.txt b/LayoutTests/fast/dom/HTMLDialogElement/fixpos-dialog-layout-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..981152c2289d0b681d19a34edd887f48cef4e4a6 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/HTMLDialogElement/fixpos-dialog-layout-expected.txt |
@@ -0,0 +1,44 @@ |
+Tests layout of fixed positioned dialogs. |
+ |
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
+ |
+ |
+ |
+showModal() should center in the viewport. |
+PASS dialog.getBoundingClientRect().top is centeredTop |
+ |
+The computed top and bottom of a centered dialog should still have position auto. |
+PASS window.getComputedStyle(dialog).top is "auto" |
+PASS window.getComputedStyle(dialog).bottom is "auto" |
+ |
+The dialog shold stay centered on scroll. |
+PASS dialog.getBoundingClientRect().top is centeredTop |
+ |
+A tall dialog should be positioned at the top of the viewport. |
+PASS dialog.getBoundingClientRect().top is 0 |
+ |
+The dialog should be centered regardless of the presence of a horizontal scrollbar. |
+PASS dialog.getBoundingClientRect().top is centeredTop |
+ |
+Centering should work when dialog is inside positioned containers. |
+PASS dialog.getBoundingClientRect().top is centeredTop |
+PASS dialog.getBoundingClientRect().top is centeredTop |
+ |
+A centered dialog's position should survive becoming display:none temporarily. |
+PASS dialog.getBoundingClientRect().top is expectedTop |
+ |
+Dialog should lose centering when removed from the document. |
+FAIL dialog.getBoundingClientRect().top should be 0. Was 800. |
+ |
+Dialog's specified position should survive after close() and showModal(). |
+PASS dialog.getBoundingClientRect().top is expectedTop |
+ |
+Dialog should not be centered if showModal() was called when an ancestor had display 'none'. |
+FAIL dialog.getBoundingClientRect().top should be 0. Was 10016. |
+ |
+A dialog with specified 'top' should be positioned as usual |
+PASS dialog.getBoundingClientRect().top is offset |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+ |