RESOLVED FIXED 207567
:host() pseudo-selector reported as :host in CSSStyleRule
https://bugs.webkit.org/show_bug.cgi?id=207567
Summary :host() pseudo-selector reported as :host in CSSStyleRule
jlo
Reported 2020-02-11 11:05:32 PST
Created attachment 390393 [details] Minimal reproduction case Any |:host(selector)| rules in a stylesheet are incorrectly reported as plain |:host| pseudo-selectors when accessed through CSSStyleRule.prototype.cssText or CSSStyleRule.prototype.selectorText. See the attached test case. In Chrome and FireFox the <pre> is populated with |:host(.hidden) { display: none; }|, using Safari (Mobile and Desktop) the output is |:host { display: none; }|.
Attachments
Minimal reproduction case (420 bytes, text/html)
2020-02-11 11:05 PST, jlo
no flags
patch (3.24 KB, patch)
2020-08-27 09:19 PDT, Antti Koivisto
no flags
Radar WebKit Bug Importer
Comment 1 2020-02-11 15:07:18 PST
Antti Koivisto
Comment 2 2020-08-26 08:59:39 PDT
Antti Koivisto
Comment 3 2020-08-27 09:19:35 PDT
EWS
Comment 4 2020-08-27 10:28:09 PDT
Committed r266245: <https://trac.webkit.org/changeset/266245> All reviewed patches have been landed. Closing bug and clearing flags on attachment 407411 [details].
jlo
Comment 5 2020-12-01 08:31:23 PST
I see the fix for this has been merged for quite some time, but the issue is still occurring on the latest Safari releases. Has the fix been included in a Safari release yet?
Jonathan Bedard
Comment 6 2020-12-01 09:30:50 PST
Looks like this missed the branch cut-off (which was r266022) and never got cherry-picked to the release branch.
jlo
Comment 7 2020-12-01 09:35:24 PST
Okay, thanks for the update. Does this mean it should make it into the next release (14.1)?
MC
Comment 8 2021-05-24 09:39:30 PDT
(In reply to Jonathan Bedard from comment #6) > Looks like this missed the branch cut-off (which was r266022) and never got > cherry-picked to the release branch. Hello. We have projects that depend on this bug fix getting pushed in safari. Can this fix please be included in the next release soon?? Thanks
Antti Koivisto
Comment 9 2021-05-25 01:59:50 PDT
The fix was in macOS 11.3/iOS 14.5
Note You need to log in before you can comment on or make changes to this bug.