- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 06 May 2020 14:00:45 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Box model / layout model for nested ruby containers (block axis)`, and agreed to the following: * `RESOLVED: accept the proposal in the issue, with the caveat that it should apply only to in-flow content` <details><summary>The full IRC log of that discussion</summary> <astearns> topic: Box model / layout model for nested ruby containers (block axis)<br> <astearns> github: https://github.com/w3c/csswg-drafts/issues/4980<br> <emilio> florian: I think this one is a little bit more involved<br> <emilio> ... but the previous ones have cleared the way so that we have less moving pieces<br> <emilio> ... you can have a ruby inside the base or the annotation<br> <emilio> ... how these behave is interesting<br> <emilio> ... let's say we have a ruby inside of a base<br> <emilio> ... currently the spec defines this<br> <emilio> ... but it's not clear if the wrapping around descendants happens for only direct descendants or for all descendants<br> <emilio> ... I think the answer that makes more sense is that the base container is sized to wrap tightly around all the descendants<br> <emilio> ... and same for the annotation containers<br> <emilio> ... would probably be easier with a whiteboard<br> <emilio> fantasai: I think this model makes sense, if we add _in flow_ descendants<br> <emilio> ... I think it doesn't require the layout model to dig through nested levels other than via the sizes of the boxes, which makes this simpler<br> <emilio> xidorn: I think FF is currently doing something magically<br> <emilio> ... not sure how it'd differ in practice<br> <emilio> florian: I couldn't understand what magic FF is doing, but the effects of it seem less useful<br> <emilio> ... when you have nesting there's more spacing than there would be from this model<br> <emilio> ... and I don't know where it is coming from<br> <emilio> xidorn: [missed]<br> <emilio> koji: I agree that if you look at this case the proposed model looks good<br> <emilio> ... I have my preference to not define this because this is not demanded by users and this is a special case / divergence from inlines<br> <emilio> florian: that part of ruby is already different<br> <emilio> ... bases and annotations can take border / margin / padding<br> <emilio> koji: it seems this model requires looking at the ruby base of the bc<br> <emilio> florian: it's not the base which is sized different from inlines, it's the container which would be sized magically<br> <emilio> koji: which base?<br> <emilio> florian: let's have two levels, the outer rbc and the outer rb inside which there's a ruby ...<br> <emilio> ... all the ruby bases and containers are sized like inlines<br> <emilio> ... but the outer ruby base containers gets sized to wrap all the descendant bases and annotations<br> <emilio> fantasai: yeah the base container sizing needs to be special<br> <emilio> ... otherwise we can't account for "one of the bases has grown the font-size"<br> <emilio> ... it needs to grow to fit the bases that are inside them<br> <emilio> ... I'd go further to make this more consistent, we may want to consider that the base container is sized to fit their bases and any other base containers<br> <emilio> ... or maybe that it fits all of the margins of all of the inlines inside it<br> <emilio> ... in which case the definition would just work<br> <emilio> xidorn: it would not<br> <emilio> ... because annotations are not inlines<br> <emilio> fantasai: oh, that's right<br> <emilio> koji: ok<br> <xidorn> s/annotations are not inlines/annotation containers are not inlines/<br> <emilio> koji: can we mark it at risk?<br> <emilio> florian: not sure it's the right term for this, but we'll actually come back to this<br> <emilio> ... after this we have enough info to write the block layout<br> <emilio> florian: at risk means we can remove it when switching from cr to pr<br> <xidorn> florian: could you send me an example that you see Firefox's behavior unhelpful? from my testing there doesn't seem to be difference on annotations.<br> <emilio> fantasai: I think defining nested ruby so that it actually works is the right thing to do for the spec<br> <emilio> florian: and the spec was already hinting at this working, it just didn't say how<br> <fantasai> nested ruby testcase - works in Chrome and Firefox http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cruby%3E%3Cruby%3EABC%3Crt%3Eabc%3C%2Frt%3E%3C%2Fruby%3E%3Crt%3Exyz%3C%2Fruby%3E<br> <fantasai> It should continue to work, fundamentally. It's ok if the exact spacing is a bit off, but not ok if the two annotations paint on top of each other.<br> <emilio> florian: xidorn: the screenshots in the issue are just FF with a bit of photoshop<br> <emilio> xidorn: what's going on it's the whitespace taking height<br> <emilio> ... you can remove it and you see what you want<br> <emilio> fantasai: so currently nested ruby works in both Chrome and FF<br> <emilio> ... so we need to make sure that it keeps working correctly<br> <emilio> myles: nested ruby is actually pretty common in books<br> <emilio> astearns: agree, that's why I think we should define it in the spec<br> <emilio> RESOLVED: accept the proposal in the issue, with the caveat that it should apply only to in-flow content<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4980#issuecomment-624667339 using your GitHub account
Received on Wednesday, 6 May 2020 14:00:48 UTC