- add support for stylelint 16
- Add support for CSS in JS #35
- Fix shorthand properties that uses calc #28
#22
The script loops through the maps listing of all properties and will make multiple replacements in a single string such as:
transition: max-width 1s, padding-left 2s, margin-top 3s;
will recommend (or change to):
transition: max-inline-size 1s, padding-inline-start 2s, margin-block-start 3s;
(for 'ltr' anyway)
I could only find 3 properties that would seem to fit this use case:
- transition
- transition-property
- will-change
If there are more, this is easy to update as the regex is stored in the maps.js
file. By selecting only these nodes, I feel this one should run pretty lean instead of scanning all values for property names.
- check shorthand properties and convert them to appropriate logical counterparts #12
- Skips over declaration if the shorthand property value is a single value - example
margin: 0;
- Fixes bug with 2 prop mapping
- Alters 4 prop loop to only consolidate if all values are equal, and will output without the unsupported
logical
keyword
- Update package-lock dependencies
- fix git workflow
- Update stylelint peer dependency to use current version or late
- Added: support for
Logical height
- Added: support for
Logical width
- Added: migration from version 2.0.0 to 3.1.0 removing none compliant code outlined in version 2.1.0
- Added: Documentation for
border
support - Updated: peer-dependency of styleline to
13.7.2
- Fixed: repaired
Except
issues reported on original codebase - csstools/stylelint-use-logical#3
- Updated: Support for
border
logical values
- removed none compliant properties
inset-start
,inset-end
margin-start
margin-end
padding-start
padding-end
(Breaking changes)
- Updated: peer
stylelint
to 10.0.1 (major) - Updated: Node 8+ compatibility (major)
- Added:
direction
option to control whether properties and values are reported or autofixed using left to right or right to left counterparts - Fixed: Physical properties and values within
:dir(ltr)
or:dir(rtl)
are ignored
- Fix usage name
- Initial version