diff options
author | Ramshell <ramshellcinox@gmail.com> | 2018-04-05 21:04:29 -0300 |
---|---|---|
committer | Ramshell <ramshellcinox@gmail.com> | 2018-04-05 21:04:29 -0300 |
commit | d588590ed232eedbf50751ef22545e4631d5f050 (patch) | |
tree | 51e49a489f982179602575da0c39fbf30fbed129 /components/layout/multicol.rs | |
parent | 044f19d91433c706857a9ddd958425225c3a683e (diff) | |
download | servo-d588590ed232eedbf50751ef22545e4631d5f050.tar.gz servo-d588590ed232eedbf50751ef22545e4631d5f050.zip |
Add support for percentages in column-gap.
Diffstat (limited to 'components/layout/multicol.rs')
-rw-r--r-- | components/layout/multicol.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/layout/multicol.rs b/components/layout/multicol.rs index 22f8e3e24ab..3659d50e219 100644 --- a/components/layout/multicol.rs +++ b/components/layout/multicol.rs @@ -106,9 +106,8 @@ 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::First(len) => len.0.to_pixel_length(content_inline_size).into(), Either::Second(_normal) => self.block_flow.fragment.style.get_font().font_size.size(), }; |