mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fix text-decoration for block containers in layout-2020
It was only applied to the 1st inline formatting context of a block container. Other IFCs were created with the Default trait, implying TextDecorationLine::NONE.
This commit is contained in:
parent
ff2222ecd5
commit
2692426103
5 changed files with 76 additions and 4 deletions
|
@ -31,7 +31,7 @@ use style::values::specified::text::TextDecorationLine;
|
|||
use style::Zero;
|
||||
use webrender_api::FontInstanceKey;
|
||||
|
||||
#[derive(Debug, Default, Serialize)]
|
||||
#[derive(Debug, Serialize)]
|
||||
pub(crate) struct InlineFormattingContext {
|
||||
pub(super) inline_level_boxes: Vec<ArcRefCell<InlineLevelBox>>,
|
||||
pub(super) text_decoration_line: TextDecorationLine,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue