aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/style/properties/properties.mako.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs
index 1680f30fdd9..5e908f17d9a 100644
--- a/components/style/properties/properties.mako.rs
+++ b/components/style/properties/properties.mako.rs
@@ -1716,6 +1716,9 @@ fn cascade_with_cached_declarations(
context.mutate_style().mutate_font().compute_font_hash();
}
+ let mode = get_writing_mode(context.style.get_inheritedbox());
+ context.style.set_writing_mode(mode);
+
context.style
}