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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-right-auto-expected.txt

Issue 1988813002: getComputedStyle should handle over-constrained properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test case's expected file Created 4 years, 7 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/css/getComputedStyle/getComputedStyle-right-auto-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-right-auto-expected.txt b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-right-auto-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..660be3e64f8b0eaa9ac4c8e8e6636d7641551236
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-right-auto-expected.txt
@@ -0,0 +1,17 @@
+PASS window.getComputedStyle(ltrElement).top is '5px'
+PASS window.getComputedStyle(ltrElement).right is '-5px'
+PASS window.getComputedStyle(ltrElement).bottom is '-5px'
+PASS window.getComputedStyle(ltrElement).left is '5px'
+PASS window.getComputedStyle(rtlElement).top is '5px'
+PASS window.getComputedStyle(rtlElement).right is '-5px'
+PASS window.getComputedStyle(rtlElement).bottom is '-5px'
+PASS window.getComputedStyle(rtlElement).left is '5px'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+getComputedStyle should return minus the value of left as right when right is auto.
+
+If direction of containing block is ltr, bottom and right should be negative
+bottom and right should be negative
+If direction of containing block is rtl, bottom and right should be negative
+bottom and right should be negative

Powered by Google App Engine
This is Rietveld 408576698