[csswg-drafts] [css-ruby] Conflicting sentences regarding autohidden ruby annotations

upsuper has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-ruby] Conflicting sentences regarding autohidden ruby annotations ==
(I'm clearing old patches in my local repo, and found there was [a bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1107701) I opened in Gecko that never gets resolved, and that seems to indicate a spec issue.)

In the section [Autohiding Base-identical Annotations](https://drafts.csswg.org/css-ruby-1/#autohide), there is a sentence stating:
> Hiding a ruby annotation does not affect ... the block-axis positioning of boxes in other levels. However the hidden annotation ... has no impact on layout other than to separate adjacent sequences of ruby annotation boxes within its level, as if they belonged to separate segments and the hidden annotation’s base were not a ruby base but an intervening inline.

It conflicts in the sense that, what if the hidden ruby annotation does contribute to the block-axis positioning of boxes in other levels? i.e. if the one being hidden is particularly tall and it would normally stretch its container? An example like
```html
<ruby>
  <rb>振</rb><rb>り</rb><rb>仮</rb><rb>名</rb>
  <rt>ふ</rt><rt style="line-height: 50px;">り</rt><rt>が</rt><rt>な</rt>
  <rtc>Furigana</rtc>
</ruby>
```
Should the `<rtc>` be put 50px away from the base?

It seems to me that the sentence "as if they belonged to separate segments and the hidden annotation’s base were not a ruby base but an intervening inline" is probably great anyway, given that [the layout section](https://drafts.csswg.org/css-ruby-1/#ruby-layout) says:
> Ruby annotations within a level (within a single ruby container) are aligned to each other as if they were inline boxes participating in the same inline formatting context.

That sentence sounds like, if there is an autohidden annotation, the annotations before and after should be in two separate inline formatting context, which I believe is not what it means to be.

I guess we can probably allow autohidden annotation to continue contributing to layout, and just say it should behave as if it doesn't have any content.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2649 using your GitHub account

Received on Monday, 7 May 2018 06:24:34 UTC