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.
See also: https://github.com/w3c/csswg-drafts/issues/8106
<rdar://problem/111273263>