Re: [csswg-drafts] [css-values] A more structured format for complex CSS values? (#6519)

The main issue of CSS that I'm hoping this would help with is the non-obviousness in the order of certain property values.

There's a bit of a preventative measure here, in that it's solving a problem that perhaps isn't quite big enough to need a solution _yet_. But in peeking at a bit of [what's being requested by devs](https://github.com/w3c/csswg-drafts/issues/1332), at a bit of what we're wanting CSS to be able to do in the future, it becomes apparent that certain properties are going to either have a very complex single-dimension (string) value definition (and complexity turns away new developers), or a more structured multiple-dimension (associative array) value definition.

Sometimes, the complexity will be able to be simplified by virtue of it only belonging to shorthand/combo properties, while the breakout longhand/individual properties make things fairly straightforward. However, in other cases (such as the requested enhancement to BG gradients linked above), the complexity isn't because it's a shorthand, but because it's just freaking complex. :p

There's only so much data we can cram into a single-line string before it becomes unwieldy to maintain. ¯\\\_(ツ)_/¯



-- 
GitHub Notification of comment by proimage
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6519#issuecomment-903247319 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 22 August 2021 10:32:40 UTC