Bug 258258
| Summary: | Update `:empty` pseudo-class to also match elements with only whitespace | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Niklas Ljunglöf <slipped-gazette.0w> |
| Component: | CSS | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Tim Nguyen (:ntim)
See also: https://github.com/w3c/csswg-drafts/issues/8106
Radar WebKit Bug Importer
<rdar://problem/111273263>