Re: [csswg-drafts] "Single content, multiple renderings" feature for `<selectlist>` (#9284)

> Despite that precedent, I think a full redo-css style rule matching on a virtual element is going to be difficult for UAs to implement. If the goal is to allow full customizability, cloning the HTML is more likley to be a good solution.

That said, you can go pretty far these days with custom properties. A `<use>` like system where the selected option uses the same specified styles as the originating element but the computed styles vary based on the new inheritance would be powerful enough for the demos which you presented.

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


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

Received on Thursday, 14 September 2023 14:28:11 UTC