Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fr to known units #2308

Merged
merged 1 commit into from Jan 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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