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

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