Skip to content

Commit 38e2915

Browse files
authored
Add more shorthands (hudochenkov#119)
Added some missing shorthands: - margin-block - margin-inline - padding-block - padding-inline - offset - overflow - mask-border
1 parent 14c178f commit 38e2915

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/properties-order/shorthandData.js

+14
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
// See https://github.com/stylelint/stylelint/blob/10.1.0/lib/reference/shorthandData.js
44
module.exports = {
55
margin: ['margin-top', 'margin-bottom', 'margin-left', 'margin-right'],
6+
'margin-block': ['margin-block-start', 'margin-block-end'],
7+
'margin-inline': ['margin-inline-start', 'margin-inline-end'],
68
padding: ['padding-top', 'padding-bottom', 'padding-left', 'padding-right'],
9+
'padding-block': ['padding-block-start', 'padding-block-end'],
10+
'padding-inline': ['padding-inline-start', 'padding-inline-end'],
711
background: [
812
'background-image',
913
'background-size',
@@ -128,7 +132,9 @@ module.exports = {
128132
'grid-gap': ['grid-row-gap', 'grid-column-gap'],
129133
'grid-row': ['grid-row-start', 'grid-row-end'],
130134
'grid-template': ['grid-template-columns', 'grid-template-rows', 'grid-template-areas'],
135+
offset: ['offset-anchor', 'offset-distance', 'offset-path', 'offset-position', 'offset-rotate'],
131136
outline: ['outline-color', 'outline-style', 'outline-width'],
137+
overflow: ['overflow-x', 'overflow-y'],
132138
'text-decoration': ['text-decoration-color', 'text-decoration-style', 'text-decoration-line'],
133139
'text-emphasis': ['text-emphasis-style', 'text-emphasis-color'],
134140
mask: [
@@ -141,4 +147,12 @@ module.exports = {
141147
'mask-clip',
142148
'mask-composite',
143149
],
150+
'mask-border': [
151+
'mask-border-mode',
152+
'mask-border-outset',
153+
'mask-border-repeat',
154+
'mask-border-slice',
155+
'mask-border-source',
156+
'mask-border-width'
157+
]
144158
};

0 commit comments

Comments
 (0)