New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cssom] Serialization of nested grouping rules is all weird #5494
Comments
I was cleaning out my browser tabs, and was about to start working on #4828 which this is kinda a dupe of. Luckily, we already have a resolution for it - unless browser compat requires otherwise, serialize without newlines or indentation. |
Ah, now I've gone slightly further back in my email and see that you commented on that thread yesterday. ^_^ I think we should either remove the indentation or do it right; this half-assed indentation is horrid and nonsensical. |
https://drafts.csswg.org/cssom/#serialize-a-css-rule includes "separated by a newline and indented by two spaces" in some rules like
CSSMediaRule
is a bit weird.Take this example (link):
All browsers show the following on the console:
Which is pretty odd. It is very simple because that means that the serialization for a rule doesn't have to be stateful, but the result just sucks...
My question is, should we fix this? And assuming the answer is yes, should we fix this by properly indenting things, or by removing the indentation altogether?
The text was updated successfully, but these errors were encountered: