Re: [csswg-drafts] [css-inline] Should dominant-baseline inherit?

The Working Group just discussed `Should dominant-baseline inherit?`, and agreed to the following:

* `RESOLVED: Close this issue with no change to CSS Inline`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: Should dominant-baseline inherit?<br>
&lt;dael> github:<br>
&lt;dael> fantasai: I don't remember if we resolved on this, but it's really the only reasonable thing. As spec in SVG this has an auto value that behaves like inherit but only on a text element.<br>
&lt;chris> q+<br>
&lt;dael> fantasai: Seems awk design that's a result of not thinking about inheritence. CSS inline L3 spec that dom-baseline is inherited value<br>
&lt;dael> fantasai: Wanted to ask for review and confirm<br>
&lt;astearns> ack chris<br>
&lt;dael> chris: This isn't so much inheritence it was more that once you started a text run the font you set on that effected kinda like underline when it effects the children. But if you can make it work using inheritence fine, but that's why originally<br>
&lt;dael> fantasai: CSS modal I think we should use works that each element has a dom-baseline property generally same as parent and that sets baseline to align own contents. When align to parent uses alignment baseline which is different prop. I don't see need to inherit.<br>
&lt;chris> ok, sounds good<br>
&lt;dael> fantasai: If you want a baseline table that passes through changes in font size etc to descendants I can see case for more complex, but I don't think that's deisred. I think you want a localized baseline grid and then that whole thing aligns to parent baseline table. Then you don't pass baseline through multiple elements<br>
&lt;dael> chris: Fine to me<br>
&lt;dael> fantasai: Okay<br>
&lt;dael> astearns: Any concern that 3 engines aren't making prop inheritable?<br>
&lt;dael> fantasai: In SVG context the inheritence will be archine. I don't think most people will set on root SVG element. Once on text element it does inherit. I don't think anyone is chaning OM value of dom baseline of a text element in SVG. IN general case behavior is identical. Weird cases for a change and I don't expect them to be common<br>
&lt;dael> fantasai: That's my expection, could be wrong<br>
&lt;fantasai> s/archine/arcane/<br>
&lt;dael> astearns: ericwilligers are you okay having dom baseline inherit?<br>
&lt;dael> ericwilligers: Fine with it. It's what blink does. I can send a PR for SVG spec to mention it's inherited<br>
&lt;dael> fantasai: Also need to change auto value so it doens't pretend to inherit<br>
&lt;dael> astearns: Anything else on this?/<br>
&lt;dael> astearns: Prop: Close this issue with no change to CSS Inline<br>
&lt;dael> astearns: Objections?<br>
&lt;dael> myles: Reset what dom baseline is at writing mode change?<br>
&lt;dael> fantasai: At writing mode change the dom baseline also changes.<br>
&lt;dael> myles: Isn't that what auto means? If someone sets to another value you want to change at writing mode change<br>
&lt;dael> fantasai: That is an interesting idea. Don't know that it's strictly necessary. I think you could argue you might want that to happen, but it depends on writing system.<br>
&lt;dael> fantasai: If you have inline block with horz text you would want it not to have central baseline in a vertical doc<br>
&lt;dael> florian: Some kind of expanded version of dom baseline with two values?<br>
&lt;dael> myles: No, not that. I think current behavior allows for this<br>
&lt;dael> fantasai: Currently initial value is auto and doesn't resolve to anything. If you set to a different baseline it inherits through orthogonal flow. For default case, that's typical for Japanese or Chinese because it does the right thing<br>
&lt;dael> myles: I'm not sure saying auto works correctly means property is correct. Maybe a new issue?<br>
&lt;dael> astearns: I was thinking new issue, but now I'm thinking that if we do take from SVG that dominant doesn't inherit we can have auto do the right thing. We're taking on complexity of auto to solve a writing mode switch<br>
&lt;dael> fantasai: But when you switch writing modes and you set something like mathematical baseline what do you expect at a writing mode change? If what you want is to have alphabetic in horz and central in vertical set to auto and it works. If you set to mathematical baseline what do we propose to do other than mathematical. If it's the same as before the writing mode change that's inherit<br>
&lt;dael> astearns: I suggest we define auto somewhat like SVG where auto takes dom baseline of parent unless writing mode change and if writing mode change auto takes standard baseline for writing mode<br>
&lt;dael> myles: Different. I was thinking that any value for dom baseline would apply to all descendants until a triggering condition makes it not apply<br>
&lt;dael> fantasai: What does not apply mean?<br>
&lt;dael> myles: On other side of trigger it resets to auto<br>
&lt;dael> fantasai: I don't think that is nec what you want. I don't think it's worth the complexity to make this non-inherit. That would be confusing because auto would have to look deep in document trees if you set inside a root. You have to go up the tree every time.<br>
&lt;chris> q+<br>
&lt;dael> fantasai: And what would we gain? I don't think anything because I don't think switching is always the right call. When we want the writing mode to trigger a change in dominant is switch between alpahetic or cental and auto will do the switch. Unless you set it to something else it will have that behavior. I don't think resetting it is nec/ the right answer<br>
&lt;dael> fantasai: No one has given me a clear use case where writing modes should trigger a change in dom baseline except what's covered in auto. Unless there's another use case it's not worth doing<br>
&lt;dael> dbaron: Is norm for Hindi and other languages that you'd want to set dom baseline to hanging?<br>
&lt;dael> astearns: no b/c fonts don't support. Indic uses another baseline<br>
&lt;dael> myles: [missed] If you're using web fonts and you know it supports you should<br>
&lt;dael> dbaron: If you're saying this work auto if for vertical Chinese in a Hinid doc it doesn't work then it doesn't.<br>
&lt;astearns> s/Indic uses another/Indic uses alphabetic/<br>
&lt;dael> chris: To dbaron not all fonts support all baselines and it's more a case that an occational one does support. myles spoke about triggering conditions, which are other triggering conditions? If it's just that one perhaps the 2 values florian suggested would be better?<br>
&lt;dael> myles: I don't know on other triggering. I haven't don research. one prop with 2 values seems a lot of added complexity.<br>
&lt;dael> fantasai: dbaron your case when switching Indic to Chinese when you haev a writing system change you want a baseline change. Horz Chinese in an Indic doc you'd want Chinese to have own dominent baseline. That's a writing system change, not a writing mode change. Writing mode isn't trigger you're looking for. Indic doc with hanging baseline and both horz and vert text would you switch dom baseline for vert indic text would you switch? I don't htink so.<br>
&lt;dbaron> fantasai, that makes sense to me<br>
&lt;dael> astearns: I haven't heard anything that makes me thing we would keep dom baseline from inheriting. I think we should open a new issue for these switches and what happens. Is everyone okay leaving this to another issue and close this one?<br>
&lt;dael> myles: Fine<br>
&lt;dael> astearns: Everyone was interested, but it would be good to have this as an issue.<br>
&lt;fantasai> propsed resolution: No change to css-inline, dominant-baseline inherits and auto only switches between alphabetic/central (not synthesizing inheritance)<br>
&lt;dael> florian: Fine. We can expore 2 value eslewhere<br>
&lt;dael> astearns: Objections to Close this issue with no change to CSS Inline<br>
&lt;dael> astearns: ?<br>
&lt;dael> RESOLVED: Close this issue with no change to CSS Inline<br>

GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at using your GitHub account

Received on Wednesday, 1 August 2018 23:22:52 UTC