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

Support 'clear' on page floats #378

Merged
merged 8 commits into from Jul 13, 2017
Merged

Support 'clear' on page floats #378

merged 8 commits into from Jul 13, 2017

Conversation

kwkbtr
Copy link
Contributor

@kwkbtr kwkbtr commented Jul 12, 2017

  • When a clear value is specified on a page float, it is placed so that it comes after any of preceding page floats.
  • same value means the same direction as one which the page float is floated to.
  • If a page float with float: snap-block would be placed at the block-start end but a clear value on it forbidden such placement, the float is instead placed at the block-end side (unless the clear value also forbidden such placement).

…ecified side to PageFloatLayoutContext

'getPageFloatPlacementCondition' method of PageFloatLayoutContext returns whether a page float can be placed at each logical side of its container.
A false value means that the page float cannot be placed at the side due to 'clear' property.
- If the float is forbidden at all possible sides, it gets deferred to the next container.
- If a snap-block float is forbidden at block-start but allowed at block-end, place it at the block-end side.
@kwkbtr kwkbtr merged commit 45c390d into master Jul 13, 2017
@kwkbtr kwkbtr deleted the clear_on_page_floats-r#569 branch July 13, 2017 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant