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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-clip.html

Issue 1506883004: Fixes incorrect values seen in clip property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-clip.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-clip.html b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-clip.html
new file mode 100644
index 0000000000000000000000000000000000000000..ba9c0e95980b44d4a961f9a9e21b05a3b157c0c2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-clip.html
@@ -0,0 +1,13 @@
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<div id="target1" style="clip: rect(auto, auto, auto, auto);"></div>
+<div id="target2" style="clip: rect(auto, auto, auto, 5);"></div>
+<div id="target3" style="clip: rect(5, 2, auto, 5);"></div>
+<script>
+test(function() {
+ // Tests https://code.google.com/p/chromium/issues/detail?id=412921
+ assert_equals(getComputedStyle(target1).clip, 'rect(auto auto auto auto)');
+ assert_equals(getComputedStyle(target2).clip, 'rect(auto auto auto 5px)');
+ assert_equals(getComputedStyle(target3).clip, 'rect(5px 2px auto 5px)');
+});
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698