Bug 263596

Summary: :dir invalidation for input elements does not work correctly
Product: WebKit Reporter: Anne van Kesteren <annevk>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: cdumez, mike, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Anne van Kesteren
Reported 2023-10-24 10:10:54 PDT
Bug 261941 added some invalidation logic, but it seems it's not being hit for a number of cases. This might be related to InputType::createIfDifferent() as that is the only thing that can cause HTMLInputElement::updateType() to return early, but I was not able to figure it out in the time I gave myself for this. The test in LayoutTests/imported/w3c/web-platform-tests/css/selectors/dir-pseudo-on-input-element.html for dynamic changes can easily be made more general by setting input.type to each of the types in the for of loop surrounding the next test.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-10-31 10:11:13 PDT
Note You need to log in before you can comment on or make changes to this bug.