W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2020

[csswg-drafts] [multiple] Serialization of rules (#4828)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 04 Mar 2020 18:01:28 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-575629133-1583344886-sysbot+gh@w3.org>
tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [multiple] Serialization of rules ==
I just merged a PR (<https://github.com/w3c/css-houdini-drafts/pull/980>) specifying how to serialize an `@property` rule. I wasn't sure whether it should all be serialized on one line (as the PR specified, and now in the draft), or if they should be indented on a newline, so I went looking for precedents, and it doesn't appear we have any.

Afaict, no spec defines how to serialize rules *at all*: not CSSOM, nor any spec that defines its own at-rules, like Conditional or Animations.

I presume we want to specify this so we can be consistent, and can test rule serialization? How should it work? Where should such a definition live - individual specs, or in CSSOM, or general rules in CSSOM with explicit hooks that individual specs have to define for serialization of preludes and which descriptors to include?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4828 using your GitHub account
Received on Wednesday, 4 March 2020 18:01:34 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:02 UTC