W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

Re: [csswg-drafts] [css-pseudo-4] should CSSPseudoElement have a pseudo() method? (#3836)

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
Message-ID: <issue_comment.created-763820740-1611164863-sysbot+gh@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>
&lt;dael> Topic: should CSSPseudoElement have a pseudo() method?  Would it be worth considering having two separate properties, Element element and Element|CSSPseudoElement parent<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/3836#issuecomment-502344378<br>
&lt;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>
&lt;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>
&lt;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>
&lt;dael> florian: Got thumbs up so proposal is accept<br>
&lt;dael> astearns: If it's not nested parent returns nothing?<br>
&lt;dael> florian: Returns same as element<br>
&lt;dael> astearns: First is element ancestor and second is immediatate parent<br>
&lt;dael> florian: Yes<br>
&lt;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>
&lt;dael> florian: It would be walking up hierarchy step by step. Just need to define weird cases<br>
&lt;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>
&lt;dael> astearns: Other opinions?<br>
&lt;dael> astearns: Hearing people in favor<br>
&lt;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>
&lt;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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:38 UTC