Skip to content

Commit 8aa0a07

Browse files
committed
Properties: Added missing values for touch-action
Added missing value for the `touch-action` property. Reference: [1](https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action) [2](https://msdn.microsoft.com/en-gb/library/windows/apps/hh767313.aspx)
1 parent e89875f commit 8aa0a07

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

src/css/Properties.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,8 @@ var Properties = {
506506
"text-transform" : "capitalize | uppercase | lowercase | none | inherit",
507507
"text-wrap" : "normal | none | avoid",
508508
"top" : "<margin-width> | inherit",
509-
"-ms-touch-action" : "auto | none | pan-x | pan-y",
510-
"touch-action" : "auto | none | pan-x | pan-y",
509+
"-ms-touch-action" : "auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation",
510+
"touch-action" : "auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation",
511511
"transform" : 1,
512512
"transform-origin" : 1,
513513
"transform-style" : 1,

tests/css/Validation.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -931,11 +931,16 @@
931931
"auto",
932932
"none",
933933
"pan-x",
934-
"pan-y"
934+
"pan-y",
935+
"pan-left",
936+
"pan-right",
937+
"pan-up",
938+
"pan-down"
939+
"manipulation"
935940
],
936941

937942
invalid: {
938-
"foo" : "Expected (auto | none | pan-x | pan-y) but found 'foo'."
943+
"foo" : "Expected (auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation) but found 'foo'."
939944
}
940945
}));
941946

@@ -946,11 +951,16 @@
946951
"auto",
947952
"none",
948953
"pan-x",
949-
"pan-y"
954+
"pan-y",
955+
"pan-left",
956+
"pan-right",
957+
"pan-up",
958+
"pan-down"
959+
"manipulation"
950960
],
951961

952962
invalid: {
953-
"foo" : "Expected (auto | none | pan-x | pan-y) but found 'foo'."
963+
"foo" : "Expected (auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation) but found 'foo'."
954964
}
955965
}));
956966

0 commit comments

Comments
 (0)