- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 23 Apr 2025 16:15:17 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-values-5] allow specifying flat vs light tree in `sibling-index()` and `sibling-count()` ``, and agreed to the following: * `RESOLVED: to have sibling-index() and sibling-count() to default to DOM tree` <details><summary>The full IRC log of that discussion</summary> <ydaniv> emilio: this is about which tree do sibling-index and sibling-count work on<br> <ydaniv> ... right now using the flat tree which is weird default<br> <ydaniv> ... the right default would probably be the light tree<br> <ydaniv> ... a lot of work if there is now use-case<br> <bramus> q+<br> <ydaniv> ... could expose, but feel strongly default should be DOM tree<br> <futhark> q+<br> <astearns> ack bramus<br> <ydaniv> astearns: this is only about using the DOM tree as default<br> <ydaniv> bramus: we initially mentioned that this would be whatever n-child is using<br> <astearns> ack futhark<br> <ydaniv> futhark: no strong opinion but nth-child already has issues<br> <ydaniv> ... if we add support selectors inside -index() that would enable it, otherwise there is a clear use-case for using DOM tree<br> <ydaniv> ... do think it could be said the same for nth-child<br> <ydaniv> ... there's also a proposal for children-count() and that would have a big difference<br> <emilio> q+<br> <ydaniv> ... because if you style the slot ... if allowing flat tree<br> <astearns> ack emilio<br> <ydaniv> emilio: I think that makes sense, I think sibling and count <missed><br> <ydaniv> ... I could come up with cases for both, we need a more holistic conversation how we expose these in all functions<br> <ydaniv> ... default should be DOM tree<br> <bramus> +1<br> <ydaniv> futhark: I agree<br> <ydaniv> ... impl.-wise not a big deal for us<br> <ydaniv> astearns: what if we resolve to change specs to default for DOM tree for sibling-index and -count<br> <emilio> s/<missed>/sibling and child count for flat tree are a bit more complicated because there are two counts you care about, the one that includes slots and the "flattened" one/<br> <ydaniv> ... and keep this issue open for swapping for all of other counting functions<br> <ydaniv> PROPOSED: to have sibling-index() and sibling-count() to default to DOM tree<br> <ydaniv> RESOLVED: to have sibling-index() and sibling-count() to default to DOM tree<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9562#issuecomment-2824834068 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 23 April 2025 16:15:18 UTC