Add MulticolFlow and use it for multicol elements.

It currently "inherits" from BlockFlow and does not override anything.
This commit is contained in:
Simon Sapin 2015-03-07 17:15:31 +01:00
parent f30cd4f377
commit cc4749373a
6 changed files with 130 additions and 3 deletions

View file

@ -1394,7 +1394,8 @@ impl BlockFlow {
FormattingContextType::Other
}
_ if style.get_box().overflow_x != overflow_x::T::visible ||
style.get_box().overflow_y != overflow_y::T(overflow_x::T::visible) => {
style.get_box().overflow_y != overflow_y::T(overflow_x::T::visible) ||
style.is_multicol() => {
FormattingContextType::Block
}
_ => FormattingContextType::None,