mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
style: Don't apply text-combine-upright in sideways-* writing modes.
Differential Revision: https://phabricator.services.mozilla.com/D61326
This commit is contained in:
parent
6682f725cf
commit
f426b644ca
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue