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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/fixpos-dialog-layout.html

Issue 1890743002: Reland of ix getComputedStyle positioned element values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 8 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: 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();
}());

Powered by Google App Engine
This is Rietveld 408576698