Skip to content

Commit

Permalink
update @font-palette-values test to latest spec
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Apr 3, 2022
1 parent e159c44 commit cbe80de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,15 @@

```css
/* Original code */
@font-palette-values Foo { base-palette: 1; }
@font-palette-values --Foo { base-palette: 1; }
@counter-style bar { symbols: b a r; }
@font-feature-values Bop { @styleset { test: 1; } }

/* Old output (with --minify) */
@font-palette-values Foo{base-palette: 1;}@counter-style bar{symbols: b a r;}@font-feature-values Bop{@styleset {test: 1;}}
@font-palette-values --Foo{base-palette: 1;}@counter-style bar{symbols: b a r;}@font-feature-values Bop{@styleset {test: 1;}}

/* New output (with --minify) */
@font-palette-values Foo{base-palette:1}@counter-style bar{symbols:b a r}@font-feature-values Bop{@styleset{test:1}}
@font-palette-values --Foo{base-palette:1}@counter-style bar{symbols:b a r}@font-feature-values Bop{@styleset{test:1}}
```

* Upgrade to Go 1.18.0 ([#2105](https://github.com/evanw/esbuild/issues/2105))
Expand Down
4 changes: 2 additions & 2 deletions internal/css_parser/css_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,12 +855,12 @@ func TestAtRule(t *testing.T) {

// https://drafts.csswg.org/css-fonts-4/#font-palette-values
expectPrinted(t, `
@font-palette-values Augusta {
@font-palette-values --Augusta {
font-family: Handover Sans;
base-palette: 3;
override-colors: 1 rgb(43, 12, 9), 2 #000, 3 var(--highlight)
}
`, `@font-palette-values Augusta {
`, `@font-palette-values --Augusta {
font-family: Handover Sans;
base-palette: 3;
override-colors:
Expand Down

0 comments on commit cbe80de

Please sign in to comment.