mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
style: Add a comment quoting the spec.
This commit is contained in:
parent
8798549beb
commit
35a98af0ed
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue