Skip to content

Commit

Permalink
Add more shorthands (#119)
Browse files Browse the repository at this point in the history
Added some missing shorthands:
- margin-block
- margin-inline
- padding-block
- padding-inline
- offset
- overflow
- mask-border
  • Loading branch information
cduivis authored Oct 19, 2024
1 parent 14c178f commit 38e2915
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/properties-order/shorthandData.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
// See https://github.com/stylelint/stylelint/blob/10.1.0/lib/reference/shorthandData.js
module.exports = {
margin: ['margin-top', 'margin-bottom', 'margin-left', 'margin-right'],
'margin-block': ['margin-block-start', 'margin-block-end'],
'margin-inline': ['margin-inline-start', 'margin-inline-end'],
padding: ['padding-top', 'padding-bottom', 'padding-left', 'padding-right'],
'padding-block': ['padding-block-start', 'padding-block-end'],
'padding-inline': ['padding-inline-start', 'padding-inline-end'],
background: [
'background-image',
'background-size',
Expand Down Expand Up @@ -128,7 +132,9 @@ module.exports = {
'grid-gap': ['grid-row-gap', 'grid-column-gap'],
'grid-row': ['grid-row-start', 'grid-row-end'],
'grid-template': ['grid-template-columns', 'grid-template-rows', 'grid-template-areas'],
offset: ['offset-anchor', 'offset-distance', 'offset-path', 'offset-position', 'offset-rotate'],
outline: ['outline-color', 'outline-style', 'outline-width'],
overflow: ['overflow-x', 'overflow-y'],
'text-decoration': ['text-decoration-color', 'text-decoration-style', 'text-decoration-line'],
'text-emphasis': ['text-emphasis-style', 'text-emphasis-color'],
mask: [
Expand All @@ -141,4 +147,12 @@ module.exports = {
'mask-clip',
'mask-composite',
],
'mask-border': [
'mask-border-mode',
'mask-border-outset',
'mask-border-repeat',
'mask-border-slice',
'mask-border-source',
'mask-border-width'
]
};

0 comments on commit 38e2915

Please sign in to comment.