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

Re: [csswg-drafts] [css-nesting] :selector-replace() pseudo-class function (#6330)

From: flachware via GitHub <sysbot+gh@w3.org>
Date: Mon, 31 May 2021 17:31:11 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-851609581-1622482269-sysbot+gh@w3.org>
@Loirooriol that’s an interesting idea, but as @LeaVerou already pointed out, I’d like to define any type or number of properties for a given state (sorry for the overly simplified example). And in this case that approach would basically double the number of lines, as you have to define multiple custom properties in the parents and assign them in the child afterwards. Also, I believe that all styles belonging to the child should be defined _in_ the child.

@LeaVerou I’m not totally opposed to reference different levels with something like `&1` or `&2`, but I submit that this results in a tighter coupling – whenever you change the nesting these references might break silently.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 31 May 2021 17:31:22 UTC

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