Skip to content

Commit

Permalink
Fix unit-no-unknown false positives for *vi & *vb viewport units (
Browse files Browse the repository at this point in the history
  • Loading branch information
sidverma32 committed Oct 30, 2022
1 parent 57cbcd4 commit 7fbf297
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-years-swim.md
@@ -0,0 +1,5 @@
---
"stylelint": patch
---

Fixed: `unit-no-unknown` false positives for `*vi` & `*vb` viewport units
8 changes: 8 additions & 0 deletions lib/reference/units.js
Expand Up @@ -17,19 +17,27 @@ const lengthUnits = new Set([
'ric',
'rlh',
// Viewport-percentage lengths
'dvb',
'dvh',
'dvi',
'dvmax',
'dvmin',
'dvw',
'lvb',
'lvh',
'lvi',
'lvmax',
'lvmin',
'lvw',
'svb',
'svh',
'svi',
'svmax',
'svmin',
'svw',
'vb',
'vh',
'vi',
'vw',
'vmin',
'vmax',
Expand Down

0 comments on commit 7fbf297

Please sign in to comment.