[csswg-drafts] [css-syntax] Serialization rules need to account for '%' (#4088)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax] Serialization rules need to account for '%' ==
https://drafts.csswg.org/css-syntax/#serialization has a nice table after:

>  For any consecutive pair of tokens, if the first token shows up in the row headings of the following table, and the second token shows up in the column headings, and there’s a ✗ in the cell denoted by the intersection of the chosen row and column, the pair of tokens must be serialized with a comment between them. 

That table is not correct, since it doesn't account for the `%` delimiter (which note, is different from a `percentage` token). Firefox implements this table to the letter which means something like the following incorrectly works in Firefox:

`data:text/html,<div style="--x: 20; width: var(--x)%; height: 50px; background: green"></div>`

cc @simonsapin @tabatkins 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4088 using your GitHub account

Received on Friday, 5 July 2019 09:22:06 UTC