In the selector a space can indicate a descendant. However, I see spaces can also be ignored.
From my testing, here is what I think it means:
- Spaces may be used around
,
and contextual characters (such as+
and>
). - Spaces may not be used around pseudo class and element characters (
:
and::
) as well as attribute selectors ([…]
). - Spaces may not be used with class and id characters (
.
and#
). - Spaces inside a "string" are significant.
- All other spaces are ignored. This includes padding inside an attribute selector.
The question is (a) is this officially correct? and (b) where is this covered?