W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

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

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Fri, 05 Jul 2019 09:22:05 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-464547347-1562318523-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC