- From: Jochen Kühner via GitHub <sysbot+gh@w3.org>
- Date: Fri, 21 Jun 2024 04:17:52 +0000
- To: public-css-archive@w3.org
I created a designer (https://github.com/node-projects/web-component-designer) where I use these APIs to show the matching CSS. For nesting (wich I do not support yet), I will have a solution to at least combine all the parent rules, but for scope this would be much complexer.
But as the CSSStyleSheet does not include Position information I need to parse the style myself, and so I'll need a API like "matchesScope(" wich I would hand over the scope definition.
sample:
matchesScope("(.component) to (.content, .slot, .child-component)")
and this API should return true, if the element is inside of the scope.
But for sure, I also vote for the API for the Style Rule
--
GitHub Notification of comment by jogibear9988
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10470#issuecomment-2181970454 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 21 June 2024 04:17:53 UTC