- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Tue, 05 Nov 2024 15:11:03 +0000
- To: public-css-archive@w3.org
LeaVerou has just created a new issue for https://github.com/w3c/csswg-drafts: == [selectors] `:first-node`/`:last-node`/`:only-node` pseudo-classes == Currently, `:*-child` pseudo-classes only consider element children, and will match even if the element has text nodes before it. For example, in `<button>foo <i>A</i> bar</button>` `:first-child`, `:last-child` and `:only-child` will all match. For many use cases, it is important to match when the node is *actually* the first/last/only one. I have not found use cases requiring `:nth-node()`, so I think the three titular pseudos should do it. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11154 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 5 November 2024 15:11:04 UTC