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

Unified Diff: third_party/WebKit/LayoutTests/transforms/translate-parsing.html

Issue 2643643007: CSS: Translate support for none. (Closed)
Patch Set: Created 3 years, 11 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/transforms/translate-parsing.html
diff --git a/third_party/WebKit/LayoutTests/transforms/translate-parsing.html b/third_party/WebKit/LayoutTests/transforms/translate-parsing.html
index 33e4758a067b713779f9cc7559d8b39954d26c16..6875feb36e72b7427ac2d11823182a86f6c910c4 100644
--- a/third_party/WebKit/LayoutTests/transforms/translate-parsing.html
+++ b/third_party/WebKit/LayoutTests/transforms/translate-parsing.html
@@ -6,9 +6,10 @@
<script>
expect = expect.bind(this, 'translate', 'translate');
-expect('initial').parsesAs('initial').isComputedTo('0px');
+expect('initial').parsesAs('initial').isComputedTo('none');
expect('inherit').parsesAs('inherit');
+expect('none').parsesAs('none').isComputedTo('none');
expect('10px').parsesAs('10px').isComputedTo('10px');
expect('10px -2.5px').parsesAs('10px -2.5px').isComputedTo('10px -2.5px');
expect('10px -2.5px 0').parsesAs('10px -2.5px 0px').isComputedTo('10px -2.5px');
@@ -26,7 +27,6 @@ expect('calc(100% + 10px) calc(100% - 10px) calc(100px + 200px)').parsesAs('calc
expect('calc(100% * 0.5 + 2px) calc(100% - 10px / 2) calc(100px - 200px)').parsesAs('calc(50% + 2px) calc(100% - 5px) calc(-100px)').isComputedTo('52px 195px -100px');
expect('2').isInvalid();
-expect('none').isInvalid();
expect('10deg 10px').isInvalid();
expect('10px 10px 10%').isInvalid();
expect('20smigens').isInvalid();

Powered by Google App Engine
This is Rietveld 408576698