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

@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