| Summary: | [:has() pseudo-class] Support invalidation for :placeholder-shown | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> | ||||||||
| Component: | CSS | Assignee: | Tim Nguyen (:ntim) <ntim> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, mifenton, simon.fraser, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 234556 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Tim Nguyen (:ntim)
2022-04-06 14:42:23 PDT
Created attachment 456866 [details]
Patch
Created attachment 456871 [details]
Patch
Found 1 new test failure: imported/blink/fast/forms/textarea-placeholder-visibility-3.html Created attachment 456888 [details]
[fast-cq] Patch
For the imported/blink/fast/forms/textarea-placeholder-visibility-3.html failure, it seems like we need to call TextControlPlaceholderElement::resolveCustomStyle(). Not sure if this is an isolated case where Style::PseudoClassChangeInvalidation is not enough compared to invalidateStyleForSubtree(), but might be worth checking.
In the meantime, I've added this for the placeholder case:
if (RefPtr placeholder = placeholderElement())
placeholder->invalidateStyle();
Committed r292523 (249361@main): <https://commits.webkit.org/249361@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 456888 [details]. |