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

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

Issue 2256593002: CSS: <position> parser consumes only potentially valid tokens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: references Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/transforms/perspective-origin-parsing.html
diff --git a/third_party/WebKit/LayoutTests/transforms/perspective-origin-parsing.html b/third_party/WebKit/LayoutTests/transforms/perspective-origin-parsing.html
index 5eb8c2e4c68281d1fcc731e6ac02abcdaaae2f9a..ef248844ed8aa58dd354093dd85d5a0ea2179939 100644
--- a/third_party/WebKit/LayoutTests/transforms/perspective-origin-parsing.html
+++ b/third_party/WebKit/LayoutTests/transforms/perspective-origin-parsing.html
@@ -23,9 +23,11 @@ expect('right bottom').parsesAs('right bottom');
expect('center center').parsesAs('center center').isComputedTo('100px 50px');
expect('center top').parsesAs('center top');
expect('center left').parsesAs('left center');
+expect('center 10%').parsesAs('center 10%').isComputedTo('100px 10px');
expect('top right').parsesAs('right top');
expect('left 10%').parsesAs('left 10%');
expect('left 10px').parsesAs('left 10px');
+expect('left 10% center').parsesAs('left 10% center');
expect('10% top').parsesAs('10% top');
expect('10px top').parsesAs('10px top');
expect('10px 20%').parsesAs('10px 20%');
@@ -43,6 +45,7 @@ expect('top right 30px').parsesAs('right 30px top');
expect('left 30px bottom 20px').parsesAs('left 30px bottom 20px');
expect('top 10px left 20px').parsesAs('left 20px top 10px');
expect('top 40px right 15%').parsesAs('right 15% top 40px');
+expect('top center').parsesAs('center top');
expect('left right').isInvalid();
expect('top bottom').isInvalid();
@@ -52,4 +55,14 @@ expect('10% 20% 30%').isInvalid();
expect('top 10%').isInvalid();
expect('bottom 10%').isInvalid();
expect('50% 50% 0px').isInvalid();
+
+expect('left center top').isInvalid();
+expect('left center 10%').isInvalid();
+expect('left top center').isInvalid();
+expect('left 10% right').isInvalid();
+expect('left 10% 20%').isInvalid();
+expect('center center left').isInvalid();
+expect('center center 10%').isInvalid();
+expect('10% left').isInvalid();
+expect('10% top 20%').isInvalid();
</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698