Skip to content
Permalink
Browse files

style: Add a comment quoting the spec.

  • Loading branch information...
emilio committed Sep 16, 2019
1 parent 8798549 commit 35a98af0ed5bb99735a513911184036e1a15d9db
Showing with 7 additions and 0 deletions.
  1. +7 −0 components/style/logical_geometry.rs
@@ -140,6 +140,13 @@ impl WritingMode {
TextOrientation::Mixed => {},
TextOrientation::Upright => {
flags.insert(WritingMode::UPRIGHT);

// https://drafts.csswg.org/css-writing-modes-3/#valdef-text-orientation-upright:
//
// > This value causes the used value of direction
// > to be ltr, and for the purposes of bidi
// > reordering, causes all characters to be treated
// > as strong LTR.
flags.remove(WritingMode::RTL);
flags.remove(WritingMode::INLINE_REVERSED);
},

0 comments on commit 35a98af

Please sign in to comment.
You can’t perform that action at this time.