aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/style_adjuster.rs
diff options
context:
space:
mode:
authorJonathan Kew <jkew@mozilla.com>2020-01-31 10:11:19 +0000
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-02-12 02:43:18 +0100
commitf426b644ca179e40d009ec58afa643d1c5489af0 (patch)
treecbe35cc5b6c2acd45f684708a293b3847baf27c5 /components/style/style_adjuster.rs
parent6682f725cf843e177e627ee7942977c53f230cb2 (diff)
downloadservo-f426b644ca179e40d009ec58afa643d1c5489af0.tar.gz
servo-f426b644ca179e40d009ec58afa643d1c5489af0.zip
style: Don't apply text-combine-upright in sideways-* writing modes.
Differential Revision: https://phabricator.services.mozilla.com/D61326
Diffstat (limited to 'components/style/style_adjuster.rs')
-rw-r--r--components/style/style_adjuster.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/style_adjuster.rs b/components/style/style_adjuster.rs
index a66c9462c92..2a897bbe151 100644
--- a/components/style/style_adjuster.rs
+++ b/components/style/style_adjuster.rs
@@ -281,7 +281,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
let writing_mode = self.style.get_inherited_box().clone_writing_mode();
let text_combine_upright = self.style.get_inherited_text().clone_text_combine_upright();
- if writing_mode != WritingMode::HorizontalTb &&
+ if matches!(writing_mode, WritingMode::VerticalRl | WritingMode::VerticalLr) &&
text_combine_upright == TextCombineUpright::All
{
self.style.add_flags(ComputedValueFlags::IS_TEXT_COMBINED);