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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-over-constrained-expected.txt

Issue 1988813002: getComputedStyle should handle over-constrained properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test case 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-over-constrained-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-over-constrained-expected.txt b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-over-constrained-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..7c45d8fe7b12f6c835b63dacd4f047b97a96288f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-over-constrained-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 handle over-constrained properties.
+
+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, botton and left should be negative
+bottom and left should be negative

Powered by Google App Engine
This is Rietveld 408576698