| Summary: | [:has() pseudo-class] :has() selector does not render on first pass? | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alex Riviere <fimion> | ||||||
| Component: | CSS | Assignee: | Antti Koivisto <koivisto> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | brandon, cchana, koivisto, simon.fraser, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Safari Technology Preview | ||||||||
| Hardware: | Mac (Apple Silicon) | ||||||||
| OS: | macOS 12 | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 227702 | ||||||||
| Attachments: |
|
||||||||
|
Description
Alex Riviere
2021-12-20 15:12:13 PST
*** Bug 234559 has been marked as a duplicate of this bug. *** Looks like a style sharing bug. Created attachment 447804 [details]
Patch
Committed r287362 (245504@main): <https://commits.webkit.org/245504@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 447804 [details]. *** Bug 234642 has been marked as a duplicate of this bug. *** *** Bug 234732 has been marked as a duplicate of this bug. *** Is there a way to subscribe to this bug and be alerted when the fix is pushed to the live version of Safari TP for testing? The fix should be in the next STP. You can follow @WebKit in Twitter to get notified. While I await the next STP, wanted to mention that the following selector worked but aspects of it were ignored.
label:has(+ input[type="text"])
This would select _all_ labels followed by inputs, rather than only the ones that were followed by text inputs.
Just downloaded STP 138, this bug still exists. It has the same rendering error. Dev tools pick up on the styles correctly, but they are not rendered. https://codepen.io/fimion/pen/XWeamBQ Unfortunately STP138 was based on a rather old revision (r286944) so is missing most if the more recent fixes. |