Index: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/abspos-dialog-layout.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/abspos-dialog-layout.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/abspos-dialog-layout.html |
index e88d8f3f32e6e2467173d81a3d7f33b3e78bedc8..957197bb3bf68f84b0451dc342f347d04bb239f3 100644 |
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/abspos-dialog-layout.html |
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/abspos-dialog-layout.html |
@@ -35,14 +35,11 @@ reset(); |
}()); |
(function() { |
- debug('<br>The dialog is a positioned element, so the top and bottom should not have style auto.'); |
+ debug('<br>The computed top and bottom of a centered dialog should still have position auto.'); |
- dialog.style.height = '20px'; |
dialog.showModal(); |
- shouldBeEqualToString('window.getComputedStyle(dialog).top', '790px'); |
- shouldBeEqualToString('window.getComputedStyle(dialog).bottom', '-210px'); |
- |
- dialog.style.height = 'auto'; |
+ shouldBeEqualToString('window.getComputedStyle(dialog).top', 'auto'); |
+ shouldBeEqualToString('window.getComputedStyle(dialog).bottom', 'auto'); |
reset(); |
}()); |