diff --git a/components/layout_2020/flow/mod.rs b/components/layout_2020/flow/mod.rs index 4f8afbe741b..d118f040c00 100644 --- a/components/layout_2020/flow/mod.rs +++ b/components/layout_2020/flow/mod.rs @@ -1372,7 +1372,7 @@ fn solve_block_margins_for_in_flow_block_level(pbm: &PaddingBorderMargin) -> (Le } /// This is supposed to handle 'justify-self', but no browser supports it on block boxes. -/// Instead,
and
are implemented via internal 'text-align' values. +/// Instead, `
` and `
` are implemented via internal 'text-align' values. /// The provided free space should already take margins into account. In particular, /// it should be zero if there is an auto margin. /// diff --git a/components/layout_2020/flow/text_run.rs b/components/layout_2020/flow/text_run.rs index 117cf37b915..c544342a3a3 100644 --- a/components/layout_2020/flow/text_run.rs +++ b/components/layout_2020/flow/text_run.rs @@ -36,7 +36,7 @@ const XI_LINE_BREAKING_CLASS_ZW: u8 = 28; const XI_LINE_BREAKING_CLASS_WJ: u8 = 30; const XI_LINE_BREAKING_CLASS_ZWJ: u8 = 40; -/// https://www.w3.org/TR/css-display-3/#css-text-run +/// #[derive(Debug, Serialize)] pub(crate) struct TextRun { pub base_fragment_info: BaseFragmentInfo, @@ -450,7 +450,7 @@ impl TextRun { /// Whether or not this character will rpevent a soft wrap opportunity when it /// comes before or after an atomic inline element. /// -/// From https://www.w3.org/TR/css-text-3/#line-break-details: +/// From : /// /// > For Web-compatibility there is a soft wrap opportunity before and after each /// > replaced element or other atomic inline, even when adjacent to a character that