Skip to content

Commit 4cbd2ec

Browse files
committed
Merge pull request #98 from tjvantoll/touch-action
Add touch-action and -ms-touch-action.
2 parents 632e210 + 86e6686 commit 4cbd2ec

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

src/css/Properties.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ var Properties = {
481481
"text-transform" : "capitalize | uppercase | lowercase | none | inherit",
482482
"text-wrap" : "normal | none | avoid",
483483
"top" : "<margin-width> | inherit",
484+
"-ms-touch-action" : "auto | none | pan-x | pan-y",
485+
"touch-action" : "auto | none | pan-x | pan-y",
484486
"transform" : 1,
485487
"transform-origin" : 1,
486488
"transform-style" : 1,

tests/css/Validation.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,36 @@
674674
}
675675
}));
676676

677+
suite.add(new ValidationTestCase({
678+
property: "-ms-touch-action",
679+
680+
valid: [
681+
"auto",
682+
"none",
683+
"pan-x",
684+
"pan-y"
685+
],
686+
687+
invalid: {
688+
"foo" : "Expected (auto | none | pan-x | pan-y) but found 'foo'."
689+
}
690+
}));
691+
692+
suite.add(new ValidationTestCase({
693+
property: "touch-action",
694+
695+
valid: [
696+
"auto",
697+
"none",
698+
"pan-x",
699+
"pan-y"
700+
],
701+
702+
invalid: {
703+
"foo" : "Expected (auto | none | pan-x | pan-y) but found 'foo'."
704+
}
705+
}));
706+
677707
suite.add(new ValidationTestCase({
678708
property: "z-index",
679709

0 commit comments

Comments
 (0)