Bug 166961 - Add "slotted" to PseudoElement map now that new CSSParser is enabled
Summary: Add "slotted" to PseudoElement map now that new CSSParser is enabled
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-11 19:25 PST by Joseph Pecoraro
Modified: 2023-12-29 00:11 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2017-01-11 19:25:26 PST
From CSSParserValues.cpp:

>    if (pseudoType == CSSSelector::PseudoElementUnknown) {
>        // FIXME-NEWPARSER: We can't add "slotted" to the map without breaking the old
>        // parser, so this hack ensures the new parser still recognizes it. When the new
>        // parser turns on, we can add "slotted" to the map and remove this code.
>        if (pseudoTypeString.startsWithIgnoringASCIICase("slotted"))
>            pseudoType = CSSSelector::PseudoElementSlotted;
>        else
>            return nullptr;
>    }

Looks like slotted can now be added to the map.

I assume it means:
Source/WebCore/css/SelectorPseudoClassAndCompatibilityElementMap.in
Comment 1 Anne van Kesteren 2023-12-29 00:11:16 PST
Source/WebCore/css/SelectorPseudoElementMap.in and that has happened now.