Skip to content

Commit

Permalink
style: Don't apply text-combine-upright in sideways-* writing modes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkthame authored and emilio committed Feb 12, 2020
1 parent 6682f72 commit f426b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/style/style_adjuster.rs
Expand Up @@ -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);
Expand Down

0 comments on commit f426b64

Please sign in to comment.