Bug 258258

Summary: Update `:empty` pseudo-class to also match elements with only whitespace
Product: WebKit Reporter: Niklas Ljunglöf <slipped-gazette.0w>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: benoit.rouleau, ntim, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: All   
OS: All   

Niklas Ljunglöf
Reported 2023-06-17 18:29:52 PDT
According to Selectors Level 4 (https://www.w3.org/TR/selectors-4/#the-empty-pseudo), the `:empty` pseudo-class should match whitespace-only elements. Currently it only matches elements with no child elements or content nodes.
Attachments
Tim Nguyen (:ntim)
Comment 1 2023-06-17 19:09:01 PDT
Radar WebKit Bug Importer
Comment 2 2023-06-24 18:30:16 PDT
Note You need to log in before you can comment on or make changes to this bug.