Skip to content

Commit 6704a9d

Browse files
tidoustsvgeesus
authored andcommitted
[css-color-5] Fix "custom-color-space" grammar, add autolinks
CSS grammar parsers do not like it when there is a space after the opening `<`. This update also uses the autolink wrapper syntax to create links between the references `<custom-color-space>` references and its definition. That is also more consistent with the rest of the production rules in that block.
1 parent eb583c8 commit 6704a9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-color-5/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,12 +2374,12 @@ or any other color or monochrome output device which has been characterized.
23742374
<a href="#custom-color">custom color spaces</a>:
23752375

23762376
<pre class='prod'>
2377-
<dfn export>&lt;color-space></dfn> = &lt;rectangular-color-space> | &lt;polar-color-space> | &lt; custom-color-space>
2377+
<dfn export>&lt;color-space></dfn> = <<rectangular-color-space>> | <<polar-color-space>> | <<custom-color-space>>
23782378
<dfn export>&lt;rectangular-color-space></dfn> = ''srgb'' | ''srgb-linear'' | ''lab'' | ''oklab'' | ''xyz'' | ''xyz-d50'' | ''xyz-d65''
23792379
<dfn export>&lt;polar-color-space></dfn> = ''hsl'' | ''hwb'' | ''lch'' | ''oklch''
23802380
<dfn export>&lt;custom-color-space></dfn> = <<dashed-ident>>
23812381
<dfn export>&lt;hue-interpolation-method></dfn> = [ shorter | longer | increasing | decreasing ] hue
2382-
<dfn export id="color-interpolation-method">&lt;color-interpolation-method></dfn> = in [ <<rectangular-color-space>> | <<polar-color-space>> <<hue-interpolation-method>>? | &lt; custom-color-space> ]
2382+
<dfn export id="color-interpolation-method">&lt;color-interpolation-method></dfn> = in [ <<rectangular-color-space>> | <<polar-color-space>> <<hue-interpolation-method>>? | <<custom-color-space>> ]
23832383
</pre>
23842384

23852385
The <<dashed-ident>> must have been declared

0 commit comments

Comments
 (0)