Re: [csswg-drafts] [css-rhythm-1] Avoiding accidental double spacing

@kojiishi 

I think I disagree with one point of what you said above:
> Then we learned that line-height: normal does font-dependent layout, and this issue was re-defined as "font-dependent layout and vertical rhythms should not work together".

At least from my side, the conclusion was not "should not work together", but we should find a way to make sure that font-dependent differences in layout and vertical rhythms should not interfere to create completely different results in different browsers / OS (for example, normal rhythm in one browser, double spacing everywhere in another). One way is to turn off vertical rhythm, another way would be to find a solution that avoid this bad result.

I was initially searching for the solution when we (or just me? maybe other people knew it already) realized that there were spec ambiguities and lack of interop.

With the investigation we've done now, I think we have confirmed that there were differences in the resulting layout, but that implementations were actually quite close. I think the number of things we need to agree on to have actual interop might not be all that bad.

I hope we can first resolve this, and make sure that we have actual interop on line-height calculations. Even if we do not get to full interop on how browser read font metrics (and we will not get interop on which fonts each browser actually uses), I think this will already be a good step forward.

I also think that even though I initially misunderstood how `line-height: normal` works, I think a simple variant my proposal to solve the instability problem of `line-height:normal` together with vertical rhythm may actually work. But before we discuss that, I want to try and close the line height calculations.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/938#issuecomment-315237322 using your GitHub account

Received on Friday, 14 July 2017 00:29:45 UTC