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-page-floats] how to measure the distance to edges #1234

Open
frivoal opened this issue Apr 18, 2017 · 1 comment
Open

[css-page-floats] how to measure the distance to edges #1234

frivoal opened this issue Apr 18, 2017 · 1 comment
Assignees

Comments

@frivoal
Copy link
Collaborator

frivoal commented Apr 18, 2017

The definition of snap-block (resp. snap-inline) makes it depend on the distance to the start or the end of the block (resp. line) from where the float naturally appears to determine which edge (if any) it should snap to. How that distance is measured is undefined.

It should be the distance from the coordinates of the float-anchor to the edge, but even that may need clarifications:

  • Even if we know within the line where the anchor is in the inline direction, where is it in the block direction? On the dominant baseline?

  • If the anchor is at a bidi boundary, there can be several places it could end up at depending on how we process it. Should we handle it the same way as atomic inlines (i.e. as a neutral character)? Should we use the bidi property of the elements as if it had not been floated? Something else?

    This is to answer situations like this (*denotes the position of the anchor):
    logical order: latin*HEBREW
    visual order: latin*WERBEH or latinWERBEH*

@frivoal
Copy link
Collaborator Author

frivoal commented Apr 18, 2017

live example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants