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