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-1] What properties apply to annotation containers? #6005

Open
fantasai opened this issue Feb 16, 2021 · 0 comments
Open

[css-ruby-1] What properties apply to annotation containers? #6005

fantasai opened this issue Feb 16, 2021 · 0 comments
Labels
a11y-tracker Group bringing to attention of a11y, or tracked by the a11y Group but not needing response. css-ruby-1 Current Work i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.

Comments

@fantasai
Copy link
Collaborator

fantasai commented Feb 16, 2021

We don't very clearly specify which properties do or do not apply to annotation containers and base containers. There's a specific issue on box-related properties, but we need a more generic definition as well.

Note: Annotations containers are defined to exactly contain the margin boxes of all their child annotations, except for inter-character annotations which are zero sized per #5994 because they interleave with the bases. They're currently defined to be mostly unstyled, so that layout engines are not required to implement them as fully-functional boxes.

Proposal: Create allow list of properties that apply to annotation containers, say all other properties don't apply.

Here's several categories of properties to consider:

Definitely should apply:

  • Anything explicitly said to apply to annotation containers
  • visibility
  • display
  • direction
  • unicode-bidi
  • text decoration

Probably should apply, mostly about style computation:

  • transitions
  • animations
  • counters
  • quotes

Maybe apply? (Doesn't require the box to draw, but might be hard to implement without a real box.)

  • opacity?
  • position + inset (?)
  • transforms (?)
  • scroll-snap (? seems unnecessary, but not a problem if we know the geometry)

Probably not, because requires the box to draw, so it can't be implemented as an abstract concept anymore (but if we say yes, probably yes to all of them):

  • background
  • clip-path
  • masking
  • filter effects
  • mix-blend-mode
  • outline
  • margins/border/padding (already resolved not to apply, but probably should if we want backgrounds)

See also #5999

Note: Anything that inherits will inherit through to the annotation boxes and apply there. Inheritable properties not listed above don't apply.

@fantasai fantasai added css-ruby-1 Current Work i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. a11y-tracker Group bringing to attention of a11y, or tracked by the a11y Group but not needing response. labels Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y-tracker Group bringing to attention of a11y, or tracked by the a11y Group but not needing response. css-ruby-1 Current Work i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.
Projects
None yet
Development

No branches or pull requests

1 participant