Bug 258258 - Update `:empty` pseudo-class to also match elements with only whitespace
Summary: Update `:empty` pseudo-class to also match elements with only whitespace
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-06-17 18:29 PDT by Niklas Ljunglöf
Modified: 2023-06-24 18:30 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niklas Ljunglöf 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.
Comment 1 Tim Nguyen (:ntim) 2023-06-17 19:09:01 PDT
See also: https://github.com/w3c/csswg-drafts/issues/8106
Comment 2 Radar WebKit Bug Importer 2023-06-24 18:30:16 PDT
<rdar://problem/111273263>