- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 22 Sep 2021 16:55:38 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Directionality inheritance into Shadow DOM`. <details><summary>The full IRC log of that discussion</summary> <fantasai> Topic: Directionality inheritance into Shadow DOM<br> <fantasai> github: https://github.com/w3c/csswg-drafts/issues/6609<br> <fantasai> emeyer: WHATWG triage committee had questions about directionality in Shadow DOM<br> <fantasai> emeyer: There's been several discussions there<br> <Rossen_> q?<br> <fantasai> emeyer: it's summarized in this comment I linked...<br> <fantasai> emeyer: I drafted some tests<br> <fantasai> emeyer: wanted to ask CSSWG to confirm if test asserts are correct<br> <fantasai> emeyer: and if not to correct that<br> <fantasai> emeyer: summary is if there is explicit dir value on any element<br> <fantasai> emeyer: then that value holds sway whether shadow or light DOM element<br> <fantasai> emeyer: [...]<br> <fantasai> emeyer: so if you set LTR on a shadow host then the slotted content will be LTR even if Arabic<br> <fantasai> emeyer: but if set auto on the slot, then it will use its inherent directionality<br> <florian> fantasai: what do you mean by inherent directionality?<br> <bkardell_> q+<br> <florian> fantasai: dir=auto is defined to resolved based on the directionality of the first strong character<br> <Rossen_> q?<br> <fantasai> fantasai: Are you saying that when slotting content into a shadow tree that has set directionality on its own elements, you lose the information about directionality that was in the light DOM on any slotted content<br> <florian> fantasai: are you saying that if you slot content with directionality into some shadow structure, it loses its directionality?<br> <Rossen_> ack fantasai<br> <fantasai> s/character/character, which is a heuristic and not appropriate if you know the actual directionality of the content/<br> <Rossen_> bkardell_: this is where this is stuck in verbage. The spec doesn't say and in order to write the spec we need to know what.<br> <Rossen_> bkardell_: What we have done is to capture all tests and some of the answers. We need csswg to make sure the words being used are correct.<br> <Rossen_> fantasai: happy to review offline<br> <Rossen_> emeyer: Brian did great summary of the tests and I have my verbage of what should probably go in the spec<br> <Rossen_> emeyer: Please take a look, review, review the test correctness and we can move on to write it all up.<br> <tantek> regrets+<br> <Rossen_> fantasai: There's a bunch of discussion on what the behavior should be. Lost track of it<br> <Rossen_> bkardell_: This is why we did this through examples and some text.<br> <Rossen_> q?<br> <florian> I haven't reviewed the tests, but I believe that the summary describes problematic behavior. To be looked into…<br> <fantasai> I just want to say that I think it would be very problematic if using a component meant that the light DOM's directionality got lost whenever that content got slotted into the component<br> <astearns> thanks for all of the test-writing!<br> <fantasai> And I believe I said so in the thread a couple years ago, though I don't know what's happened in the discussion since<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6609#issuecomment-925109163 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 22 September 2021 16:55:40 UTC