[csswg-drafts] [selectors-4] target within prose refers to ... itself? (#3938)

bkardell has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors-4] target within prose refers to ... itself? ==
The entire definition of `:target-within` reads today:

> The :target-within pseudo-class applies to elements for which the :target pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :target-within.

This feels confusingly recursive to parse as the definition is self-referential.  Could we re-phrase this as something like

>The :target-within pseudo-class applies elements which themselves match, or contain a descendant in the flat tree (including non-element nodes, such as text nodes) which matches the conditions for matching :target.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3938 using your GitHub account

Received on Wednesday, 15 May 2019 23:11:41 UTC