mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
layout: Support block-direction margins for inline-blocks.
Improves linux.com.
This commit is contained in:
parent
885068207f
commit
3875c9db4a
5 changed files with 61 additions and 5 deletions
|
@ -1770,8 +1770,9 @@ impl Fragment {
|
|||
let font_metrics = text::font_metrics_for_style(layout_context.font_context(),
|
||||
font_style);
|
||||
InlineMetrics::from_block_height(&font_metrics,
|
||||
block_flow.base.position.size.block +
|
||||
block_flow.fragment.margin.block_start_end())
|
||||
block_flow.base.position.size.block,
|
||||
block_flow.fragment.margin.block_start,
|
||||
block_flow.fragment.margin.block_end)
|
||||
}
|
||||
SpecificFragmentInfo::InlineAbsoluteHypothetical(_) => {
|
||||
// Hypothetical boxes take up no space.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue