[css-multicol] style: Implement percentages for 'column-gap'.

Bug: 1398537
Reviewed-by: emilio,dholbert
This commit is contained in:
Mats Palmgren 2018-04-02 00:25:30 +02:00 committed by Emilio Cobos Álvarez
parent 9677d5c1ba
commit 3532f64b32
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 26 additions and 12 deletions

View file

@ -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(),