Skip to content

Commit

Permalink
Add fr to known units (#2308)
Browse files Browse the repository at this point in the history
Closes #2307
  • Loading branch information
jeddy3 authored and davidtheclark committed Jan 31, 2017
1 parent 16014e1 commit a36c94c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/reference/keywordSets.js
Expand Up @@ -44,6 +44,8 @@ keywordSets.lengthUnits = new Set([
"pt",
"pc",
"q",
// Flexible length units
"fr",
])

keywordSets.units = uniteSets(keywordSets.nonLengthUnits, keywordSets.lengthUnits)
Expand Down
2 changes: 2 additions & 0 deletions lib/rules/unit-no-unknown/__tests__/index.js
Expand Up @@ -76,6 +76,8 @@ testRule(rule, {
code: "a { transform: rotate(0.25turn); }",
}, {
code: "a { transform: rotate(1.5708rad); }",
}, {
code: "a { grid-template-columns: repeat(12, 1fr); }",
}, {
code: "a { color: green; }",
description: "ignore keyword",
Expand Down

0 comments on commit a36c94c

Please sign in to comment.