Skip to content

Commit

Permalink
Update validator.js
Browse files Browse the repository at this point in the history
Added unit types for for container query lengths:

cqw: 1% of a query container's width
cqh: 1% of a query container's height
cqi: 1% of a query container's inline size
cqb: 1% of a query container's block size
cqmin: The smaller value of either cqi or cqb
cqmax: The larger value of either cqi or cqb
  • Loading branch information
bernesto committed Dec 19, 2023
1 parent f8b55a2 commit fc00737
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/optimizer/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,12 @@ var Units = [
'%',
'ch',
'cm',
'cqw',
'cqh',
'cqi',
'cqb',
'cqmin',
'cqmax',
'em',
'ex',
'in',
Expand Down

0 comments on commit fc00737

Please sign in to comment.