Skip to content

Commit

Permalink
Add object-* and image-* properties
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwarning committed Feb 6, 2024
1 parent 39daf30 commit 1e9629d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .changeset/two-candles-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'stylelint-config-recess-order': minor
---

Add `object-*` and `image-*` properties

- [`object-fit`](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)
- [`object-position`](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position)
- [`image-orientation`](https://developer.mozilla.org/en-US/docs/Web/CSS/image-orientation)
- [`image-rendering`](https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering)
- [`image-resolution`](https://developer.mozilla.org/en-US/docs/Web/CSS/image-resolution)
11 changes: 8 additions & 3 deletions groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,15 @@ const propertyGroups = [
],
},
{
// Background & Borders.
// Images, backgrounds, & borders.
properties: [
'object-fit',
'object-position',
'-ms-interpolation-mode',
'image-orientation',
'image-rendering',
'image-resolution',

'background',
'background-color',
'background-image',
Expand Down Expand Up @@ -348,7 +355,6 @@ const propertyGroups = [
'filter:progid:DXImageTransform.Microsoft.Alpha(Opacity',
"-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
'opacity',
'-ms-interpolation-mode',
],
},
{
Expand Down Expand Up @@ -400,7 +406,6 @@ const propertyGroups = [
'color-rendering',
'flood-color',
'flood-opacity',
'image-rendering',
'lighting-color',
'marker-start',
'marker-mid',
Expand Down

0 comments on commit 1e9629d

Please sign in to comment.