-
Notifications
You must be signed in to change notification settings - Fork 746
Description
In this post that I wrote up a little while back, I talked about "The Many Failed Attempts at Lists-of-Lists Syntax in CSS". Right now, CSS is scattered with various attempts to syntactically define "lists-of-lists" syntax, and the recent CSS Functions and Mixins module is currently on-track to introduce another lists-in-lists syntax attempt, which, via the use of curly-braces, rolls back previous understanding of list syntax, where curly braces, by convention, only held declaration lists.
I don't have a specific proposal for what lists-of-lists syntax should look like; I just think it's worth CSSWG exploring a single CSS syntax to represent it, and to:
- use a consistent list syntax and lists-of-lists syntax moving forward, and
- backporting, as needed, list syntax and lists-of-lists syntax to previous lists-of-lists syntax attempts, for consistency
If I had a preference, it would be:
- curly braces only hold declaration lists, or
- curly braces are used everywhere there are lists-of-lists, or
- a previous lists-of-lists syntax is used for new proposals, or
- a new lists-of-lists syntax is applied that is used for new proposals and backported to previous syntax
In other words, my preference for CSS would just be consistency.