diff options
-rw-r--r-- | components/style/style_adjuster.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/components/style/style_adjuster.rs b/components/style/style_adjuster.rs index 4da9f0f9227..1c859532d63 100644 --- a/components/style/style_adjuster.rs +++ b/components/style/style_adjuster.rs @@ -193,7 +193,16 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { if our_writing_mode != parent_writing_mode && self.style.get_box().clone_display() == Display::Inline { - self.style.mutate_box().set_display(Display::InlineBlock); + // TODO(emilio): Figure out if we can just set the adjusted display + // on Gecko too and unify this code path. + if cfg!(feature = "servo") { + self.style.mutate_box().set_adjusted_display( + Display::InlineBlock, + false, + ); + } else { + self.style.mutate_box().set_display(Display::InlineBlock); + } } } |