[webkit-changes] [WebKit/WebKit] f92a59: Do not prepend implicit type selectors to :host rules
Ahmad Saleem
noreply at github.com
Tue Oct 10 02:13:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f92a593eb387053331584c5fd709227ce52f6851
https://github.com/WebKit/WebKit/commit/f92a593eb387053331584c5fd709227ce52f6851
Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
Date: 2023-10-10 (Tue, 10 Oct 2023)
Changed paths:
M LayoutTests/TestExpectations
M Source/WebCore/css/parser/CSSSelectorParser.cpp
Log Message:
-----------
Do not prepend implicit type selectors to :host rules
https://bugs.webkit.org/show_bug.cgi?id=262907
Reviewed by Tim Nguyen.
Merge: https://chromium-review.googlesource.com/c/chromium/src/+/518019
Web Specification: https://drafts.csswg.org/selectors-4/#featureless
"If a given selector is allowed to match a featureless element, it must do
so while ignoring the default namespace."
:host should not have implicit type selectors pre-pended for
universal rules with default `@namespace`. Default @namespace`
applies to type and universal selectors inside :host(), but a
default `@namespace` rule should not affect :host.
That is, :host matches the host element regardless of any `@namespace`
rules.
* Source/WebCore/css/parser/CSSSelectorParser.cpp:
(CSSSelectorParser::prependTypeSelectorIfNeeded):
* LayoutTests/TestExpectations: Removed now 'failing' test
Canonical link: https://commits.webkit.org/269134@main
More information about the webkit-changes
mailing list