NEW 266953
Add '::placeholder' and '::file-selector-button' in isTreeAbidingPseudoElement
https://bugs.webkit.org/show_bug.cgi?id=266953
Summary Add '::placeholder' and '::file-selector-button' in isTreeAbidingPseudoElement
Ahmad Saleem
Reported 2023-12-31 15:28:29 PST
Hi Team, While fixing another bug in the past (bug 265611), I came across this FIXME but couldn't find related bug, so I thought to create it so we can fix it. WebKit Source: https://searchfox.org/wubkat/rev/af9971e796398c1d012ef5df9a09ed580d19bd17/Source/WebCore/css/parser/CSSSelectorParser.cpp#465 > // FIXME: This list should also include ::placeholder and ::file-selector-button In the following function, we have to add: case CSSSelector::PseudoElement::Placeholder: and case CSSSelector::PseudoElement::FileSelectorElement: > We don't have 'Placeholder' and 'FileSelectorButton' here: https://searchfox.org/wubkat/rev/af9971e796398c1d012ef5df9a09ed580d19bd17/Source/WebCore/css/CSSSelector.h#204 Just wanted to raise, so we can fix it. Blink Source: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/css_selector.cc;l=1401;drc=2755dd2e9f8848bdec96c5d99d12a179722df86d Thanks!
Attachments
Anne van Kesteren
Comment 2 2024-01-02 01:48:04 PST
I looked at this and the tests don't appear to have coverage for this. In particular I don't see tests for ::slotted there in combination with ::placeholder and such.
Ahmad Saleem
Comment 3 2024-01-02 03:58:08 PST
(In reply to Anne van Kesteren from comment #2) > I looked at this and the tests don't appear to have coverage for this. In > particular I don't see tests for ::slotted there in combination with > ::placeholder and such. I noted that here: https://searchfox.org/wubkat/rev/af9971e796398c1d012ef5df9a09ed580d19bd17/Source/WebCore/css/CSSSelector.cpp#840 and I think we can add: case CSSSelector::PseudoElement::WebKitCustomLegacyPrefixed: To cover both ::placeholder and ::file-selector-button in 'isTreeAbidingPseudoElement'.
Radar WebKit Bug Importer
Comment 5 2024-01-07 15:29:14 PST
Note You need to log in before you can comment on or make changes to this bug.