Re: [csswg-drafts] [selectors-4] Is current spec for `:empty` web compatible? (#8106)

The question is rather whether this claim from the spec. is true:

> Note: In Level 2 and Level 3 of Selectors, `:empty` did not match elements that contained only white space. This was changed so that that — given white space is largely collapsible in HTML and is therefore used for source code formatting, and especially because elements with omitted end tags are likely to absorb such white space into their DOM text contents — elements which authors perceive of as empty can be selected by this selector, as they expect.

So, to answer whether this change in the behavior of `:empty` is actually web compatible, the HTTP archive should be queried if that didn't happen yet.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8106#issuecomment-1320829510 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 19 November 2022 08:02:43 UTC