Re: [csswg-drafts] [css-ruby] visibility:collapse on ruby annotations (#5927)

The CSS Working Group just discussed `[css-ruby] visibility:collapse on ruby annotations`.

<details><summary>The full IRC log of that discussion</summary>
&lt;astearns> topic: [css-ruby] visibility:collapse on ruby annotations<br>
&lt;astearns> github: https://github.com/w3c/csswg-drafts/issues/5927<br>
&lt;fantasai> s/???/nicole/6<br>
&lt;fantasai> fantasai^: And make sure it works on slow connections<br>
&lt;dlibby> florian: ruby has a number of use, but primary use is Japanese/Chinese annotation of ideographs for pronunciation<br>
&lt;dlibby> florian: different preferences based on how experienced you are with the language<br>
&lt;dlibby> florian: printed - in school you get most annotations, others not<br>
&lt;fantasai> s/language/language, and what reading disabilities you might have<br>
&lt;dlibby> florian: but on digital media, can you hide bits that you don't want to see?<br>
&lt;fantasai> florian: display:none doesn't work because it breaks pairing<br>
&lt;fantasai> florian: visibility:hidden doesn't work because the annotation still takes up space in the layout<br>
&lt;dlibby> florian: display:none fails because removes the box, box pairing is necessary, visibility:hidden doesn't work, pairing works fine, but still takes up space<br>
&lt;myles> q+<br>
&lt;dlibby> visibility:hidden may expand spacing made room for but it's not visible so that's not great<br>
&lt;dlibby> florian: visibility:collapse is another keyword, is a natural use here<br>
&lt;dlibby> florian: hids the annotation, but keeps a box preserving alignment<br>
&lt;astearns> ack myles<br>
&lt;dlibby> myles: two examples - people that don't want pronunciation and those who are dyslexic and may get confused, wouldn't author hide all?/<br>
&lt;dlibby> florian: maybe, maybe not. children-targeted annotations may only hide the 'easy' ones<br>
&lt;dlibby> florian: or perhaps you're practicing and you don't want the help for certain characters<br>
&lt;dlibby> myles: could this be a browser feature instead of individual webpages?<br>
&lt;dlibby> fantasai: but authors do need the ability to customize this<br>
&lt;dlibby> fantasai: also can autohide things that are not perfect matches for the text<br>
&lt;dlibby> fantasai: might need an exact string comparison to achieve this, but having some way to accomplish autohiding seems like a good thing<br>
&lt;dlibby> myles: use case is perhaps a bit narrow - this is yet another 'make it invisible'<br>
&lt;dlibby> florian: it's an existing mechanism<br>
&lt;dlibby> myles: but you're creating something new for ruby<br>
&lt;fantasai> s/achieve this/do auto-hiding/<br>
&lt;fantasai> s/seems like/manuall seems like/<br>
&lt;dlibby> florian: visibility:hidden almost does what you want, but the box consumes space, you could make it small via !important but is not great<br>
&lt;dlibby> dholbert: what about contain:size with visibility:hidden?<br>
&lt;dlibby> dholbert: does that cover all the use cases?<br>
&lt;dlibby> florian: contain:size does not apply to ruby boxes, if we're going to make new things apply, visibility:collapse makes more sense and is probably more scoped<br>
&lt;dlibby> astearns: is anyone using these hacks? do we know what things are easier/harder?<br>
&lt;dlibby> astearns: if no one is performing hacks today to solve this, do we need support in browsers<br>
&lt;dlibby> florian: there have been requests from ??? organiziations in Japan<br>
&lt;dlibby> florian: they want to write all possible ways to display and have the user/author choose, but current implementations of ruby make it such that it is unreliable<br>
&lt;fantasai> s/???/DAISY/<br>
&lt;dlibby> fantasai: we did get requests from a11y orgs in Japan, didn't make it up<br>
&lt;dlibby> astears: curious if exisitence of hacks can estimate how much people are running into this?<br>
&lt;dlibby> iank: does visibility:collapse influence the container size?<br>
&lt;dlibby> iank: mental model is that it affects the container, but removes itself at the last minute<br>
&lt;dlibby> iank: doesn't seem to be the case here<br>
&lt;florian> q+<br>
&lt;dlibby> iank: that's what happens with table and flex, i beileve<br>
&lt;dlibby> fantasai: flex affects one dimension but not the other<br>
&lt;dlibby> fantasai: we could specify it similarly for ruby<br>
&lt;dlibby> fantasai: it's a layout model specific thing - collapse the thing to see the layout without it, but dont' remove the box from the tree, but re-show in a dynamic way w/o disturbing<br>
&lt;dlibby> fantasai: this means different things in different models<br>
&lt;dlibby> fantasai: in flexbox affects space in one, but not the other. ruby proposal is to treat the same as autohidden ruby<br>
&lt;fantasai> s/re-show/have ability to re-show/<br>
&lt;dlibby> florian: riffing on 'yet another way to hide' - it already hides, the way in which proposed hiding is already a thing in ruby<br>
&lt;dlibby> florian: just marrying an existing property/value to existing behavior - don't need to invent anything new<br>
&lt;dlibby> astears: we're over time, perhaps can bring up again in the future<br>
&lt;dlibby> s/astears/astearns/<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5927#issuecomment-777899377 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 12 February 2021 01:04:34 UTC