- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 20 Jan 2021 17:47:44 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `should CSSPseudoElement have a pseudo() method? Would it be worth considering having two separate properties, Element element and Element|CSSPseudoElement parent`, and agreed to the following: * `RESOLVED: Use the existing parent function in css pseudo element as returning firrst element ancestor and add an immediate parent that could possibly return a pseudo element` <details><summary>The full IRC log of that discussion</summary> <dael> Topic: should CSSPseudoElement have a pseudo() method? Would it be worth considering having two separate properties, Element element and Element|CSSPseudoElement parent<br> <dael> github: https://github.com/w3c/csswg-drafts/issues/3836#issuecomment-502344378<br> <dael> florian: Because it is now possible to have pseudo attached to pseudos. In addition to element class having pseudo pseudo element class has apseudo.<br> <dael> florian: Another question, pseduo element class has an element method that returns originating element. Pseudo on a pseudo do you want originating or parent pseduo?<br> <dael> florian: Original thought is return the parent. Later proposed we should have both. Element returns originating element, but also have a parent method that returns parent pseudo if there is one and if there isn't returns originating<br> <dael> florian: Got thumbs up so proposal is accept<br> <dael> astearns: If it's not nested parent returns nothing?<br> <dael> florian: Returns same as element<br> <dael> astearns: First is element ancestor and second is immediatate parent<br> <dael> florian: Yes<br> <dael> fantasai: One thought, if we extend to non-tree-abiding parent is not quite the right word. If you select first-letter element parent is the first line or some weird nesting. We could call it parent and say these things are special<br> <dael> florian: It would be walking up hierarchy step by step. Just need to define weird cases<br> <dael> fantasai: As long as people say it can be repurposed to not quite a parent it's fine to me. Just wanted to point out it's going to be a bit weird<br> <dael> astearns: Other opinions?<br> <dael> astearns: Hearing people in favor<br> <dael> astearns: Prop: Use the existing parent function in css pseudo element as returning fifrst element ancestor and add an immediate parent that could poss return a pseudo element<br> <dael> RESOLVED: Use the existing parent function in css pseudo element as returning firrst element ancestor and add an immediate parent that could possibly return a pseudo element<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3836#issuecomment-763820740 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 20 January 2021 17:47:46 UTC