Skip to content

[css-break][css-box][css-text][css-position] percentages and fragmentation #6512

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

Open
frivoal opened this issue Aug 12, 2021 · 1 comment
Open
Labels
css-break-3 Current Work

Comments

@frivoal
Copy link
Collaborator

frivoal commented Aug 12, 2021

There are a few properties where percentages are resolved against the size of the container. What if the container is fragmented? Each fragment is likely to have a different block size, and could even have different inline-sizes. How are these percentages then resolved? Per fragment? Based on the first fragment? Something else? For instance:

  • margin-*, padding-* (both have potentially multiple instances, due to box-decoration-break)
  • text-indent
  • left, right, top, bottom
  • (I'm sure there are more)
@frivoal
Copy link
Collaborator Author

frivoal commented Aug 13, 2021

Actually, this is probably covered by https://www.w3.org/TR/css-break-4/#varying-size-boxes:

When a flow is fragmented into varying-size fragmentainers, the following rules are observed for adapting layout:

  • Layout is performed per-fragmentainer,

Though maybe a note about what that implies for percentages might be nice.

@fantasai fantasai removed css-position-3 Current Work css-text-3 Current Work css-box-3 Current Work labels Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-break-3 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants