W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

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

From: Michael C. via GitHub <sysbot+gh@w3.org>
Date: Sun, 22 Aug 2021 10:32:38 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-903247319-1629628357-sysbot+gh@w3.org>
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

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