Serialize custom property names as identifiers
Custom property names are defined [1] to be "any valid identifier that starts with two dashes." As such, they need to be serialized as identifiers, in order to ensure that reparsing generates a valid custom property name. Change our serialization of custom property names to use SerializeIdentifier(). [1]: https://drafts.csswg.org/css-variables/#typedef-custom-property-name Bug: 828272 Change-Id: Icd830b6b3b38f0414877c6d8dec69efa00318bb3 Reviewed-on: https://chromium-review.googlesource.com/991608Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Chris Nardi <cnardi@chromium.org> Cr-Commit-Position: refs/heads/master@{#547733}
Showing
Please register or sign in to comment