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

[csswg-drafts] [css-values] [css-grid] Serialization of custom identifiers

From: Eric Willigers via GitHub <sysbot+gh@w3.org>
Date: Mon, 02 Jul 2018 07:57:35 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-337407694-1530518249-sysbot+gh@w3.org>
ewilligers has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values] [css-grid] Serialization of custom identifiers ==

> Note: These rules can produce cell names that do not match the <ident> syntax, such as "1st 2nd 3rd", which requires escaping when referencing those areas by name in other properties, like grid-row: \31st; to reference the area named 1st.

The following parsing tests show variation between browsers in how custom identifiers are serialized:
test_valid_value("grid-column-end",  "\\31st", "\\31 st"); // passes in Blink, Firefox
test_valid_value("grid-column-end",  "\\31st", "1st"); // passes in Edge
test_valid_value("grid-column-end",  "\\31st", '"1st"'); // passes in WebKit

None of these serializations are accepted by any of the main browsers as a property value: none of the browsers round-trip. If we would like to round trip, we would need to serialize as `"\\31st"`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2858 using your GitHub account
Received on Monday, 2 July 2018 07:57:59 UTC

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