-
Notifications
You must be signed in to change notification settings - Fork 711
[css-nesting] Interaction with :host is unfortunate. #9509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That's an impl bug. The spec supports this case. For
For
|
We should add tests, though that's a bit complicated impl wise (at least in Firefox), because you need not to match all other selectors inside :is(). |
@tabatkins my read about your second quote is that |
(That means that nesting inside |
No, I'd expect |
Yes, I've been wanting to fix this for a while in Blink. In our (implementations') defense, |
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1850974 gecko-commit: 3b13b5585380e95b76444f10d65a42d3543bbd1a gecko-reviewers: zrhoffman
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570 UltraBlame original commit: 3b13b5585380e95b76444f10d65a42d3543bbd1a
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570 UltraBlame original commit: 3b13b5585380e95b76444f10d65a42d3543bbd1a
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570 UltraBlame original commit: 3b13b5585380e95b76444f10d65a42d3543bbd1a
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1850974 gecko-commit: 8b16994e8df5ba96e720e00a4f0289fdb3a83708 gecko-reviewers: zrhoffman
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1850974 gecko-commit: 8b16994e8df5ba96e720e00a4f0289fdb3a83708 gecko-reviewers: zrhoffman
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570 UltraBlame original commit: 8b16994e8df5ba96e720e00a4f0289fdb3a83708
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570 UltraBlame original commit: 8b16994e8df5ba96e720e00a4f0289fdb3a83708
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570 UltraBlame original commit: 8b16994e8df5ba96e720e00a4f0289fdb3a83708
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570
This should work per spec, see w3c/csswg-drafts#9509. Tweak a bit the selector flags set up so that checking for :host selectors during CascadeData rebuilds is cheap. Differential Revision: https://phabricator.services.mozilla.com/D191570
This test-case (live) doesn't produce the expected behavior (purple) in any browser:
This is because per spec, the host only matches featureless
:host
selectors, and the&
(or:is(:host(..))
for that matter) isn't that.This is similar to #9153 / #9492 (cc: #8738).
cc: @tabatkins @andruud @mdubet @LeaVerou @fantasai
The text was updated successfully, but these errors were encountered: