mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
[css-multicol] style: Implement percentages for 'column-gap'.
Bug: 1398537 Reviewed-by: emilio,dholbert
This commit is contained in:
parent
9677d5c1ba
commit
3532f64b32
5 changed files with 26 additions and 12 deletions
|
@ -106,6 +106,7 @@ impl Flow for MulticolFlow {
|
|||
{
|
||||
let column_style = self.block_flow.fragment.style.get_column();
|
||||
|
||||
// FIXME(#20498): This should support percentages too.
|
||||
let column_gap = match column_style.column_gap {
|
||||
Either::First(len) => len.into(),
|
||||
Either::Second(_normal) => self.block_flow.fragment.style.get_font().font_size.size(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue