Skip to content

[css-ruby] Size and position of empty ruby level containers #4631

@upsuper

Description

@upsuper

The spec currently says:

Each ruby base container is sized and positioned to contain exactly all of its ruby bases’ margin boxes.

and

Each ruby annotation container is sized and positioned to contain exactly all of its ruby annotations’ margin boxes.

However, it is unclear what should happen when a ruby level container doesn't have any child.

I suggest that for empty ruby base container, it should probably behave as if there is an empty ruby base inside, so that it would laid out like a normal empty inline element.

I'm not sure what would be a useful behavior for ruby annotation container. I kinda tend to think that it should keep being zero size in that case, but we may need to define its position somehow as well?

This issue is raised because of a bug report to Gecko after I changed the behavior to match the spec.

Metadata

Metadata

Assignees

Labels

Closed Accepted by CSSWG ResolutionTestedMemory aid - issue has WPT testscss-ruby-1Current Worki18n-clreqChinese language enablementi18n-jlreqJapanese language enablementi18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions