Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -849,6 +849,23 @@ func TestAtRule(t *testing.T) { | |
content: "rb"; | ||
} | ||
} | ||
`) | ||
|
||
// https://drafts.csswg.org/css-fonts-4/#font-palette-values | ||
expectPrinted(t, ` | ||
@font-palette-values Augusta { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
evanw
Author
Owner
|
||
font-family: Handover Sans; | ||
base-palette: 3; | ||
override-colors: 1 rgb(43, 12, 9), 2 #000, 3 var(--highlight) | ||
} | ||
`, `@font-palette-values Augusta { | ||
font-family: Handover Sans; | ||
base-palette: 3; | ||
override-colors: | ||
1 rgb(43, 12, 9), | ||
2 #000, | ||
3 var(--highlight); | ||
} | ||
`) | ||
} | ||
|
||
|
The syntax here should be starting with
--
, otherwise it should report an error.Maybe we should implement a new type, e.g.
atRuleDashedIdentDeclarations