Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-ruby] Applicability of box properties on base containers and annotation containers #5999

Open
frivoal opened this issue Feb 16, 2021 · 0 comments
Labels
css-ruby-1 Current Work

Comments

@frivoal
Copy link
Collaborator

frivoal commented Feb 16, 2021

Currently, the spec says:

The UA is not required to support any of the background properties or outline properties, or any other property that illustrates the bounds of the box on ruby base container boxes or ruby annotation container boxes. The UA may implement these boxes simply as abstractions for inheritance and control over the layout of their contents.

Should we switch that to "must not support"? Seems like whether or not backgrounds apply really ought to be interoperable in order to guarantee the same contrast across implementations.

Neither the margin, padding, border properties nor the any properties that do not apply to inline boxes apply to base containers or annotation containers.

Relatedly, applying backgrounds raises the issue of applying padding: once the edge of the box becomes visually apparent, it becomes important to be able to control its distance from the content. It makes more sense to either apply both or apply neither.

Since we're otherwise treating these two containers are notional rectangles in layout calculations rather than actual boxes, I'd favour making none of these things apply. (Also, no implementation supports M/B/P on these boxes and it's rather nonsensical for inter-character annotation containers.)

@frivoal frivoal added the css-ruby-1 Current Work label Feb 16, 2021
@fantasai fantasai changed the title [css-ruby] Applicability of properties on base containers and annotation containers [css-ruby] Applicability of box properties on base containers and annotation containers Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-ruby-1 Current Work
Projects
None yet
Development

No branches or pull requests

1 participant