On Thu, Jan 9, 2025 at 10:37 AM Chromestatus < ad...@cr-status.appspotmail.com> wrote:
> Contact emails chrom...@keithcirkel.co.uk, keitha...@github.com > > Explainer https://drafts.csswg.org/css-scoping/#the-has-slotted-pseudo > > Specification https://drafts.csswg.org/css-scoping/#the-has-slotted-pseudo > > Summary > > The :has-slotted pseudo class represents a slot element with slotted > content, such as a text node or element. This can be used to style elements > based on whether or not they are using slot fallback content. > I don't see that the spec says anything about querySelector, but its evaluation depends on slot assignments. Should dirty slot assignments be updated before running querySelector? I see the implementation does not currently update the assignments. Since our implementation updates slot assignments lazily as needed, what querySelector matches will depend on which other APIs were invoked since the last rendering update. Is this feature fully tested by web-platform-tests > <https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md> > ? Yes Could you add the test links to the chromestatus entry? Looking at wpt.fyi all tests are tentative, so they need to be made non-tentative with proper spec references if they match the spec. The spec does not match flattened nodes, but there are tests that are named "flattened" which is confusing. For instance, IIUC, https://wpt.live/css/css-scoping/has-slotted-flattened-001.tentative.html should match the selector because a slot is assigned to another slot, not because nodes are flattened through. > > Estimated milestones > Shipping on desktop 133 > Shipping on Android 133 > Shipping on WebView 133 > Shipping on iOS 133 134? -- Rune Lillesveen -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscr...@chromium.org. To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeR0DviOMO6%3DowV4YmXnBRL9DajCpLfNn9P3ScEmXZOj2A%40mail.gmail.com.