Repository navigation
Commit 0909b21
authored
Add(CSS): Shorthand touch: for touch-action property (#421)
Adds touch: as the short-key prefix for the touch-action property,
matching the convention used by m (margin), p (padding), fg (color)
etc.
- One-line change in config/rules.ts: key: 'touch'
- Updates site syntaxes.ts for the reference page
- 11 test cases covering every value listed in the issue: auto, none,
pan-x, pan-y, pan-left, pan-right, pan-up, pan-down, pinch-zoom,
manipulation + long-form regression
- Real Chrome verification: touch:none → getComputedStyle ===
"none"
Closes #2151 parent dfdda9d commit 0909b21
2 files changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| 608 | + | |
608 | 609 | | |
609 | 610 | | |
610 | 611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments