mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Convert text-orientation to a Gecko-only property
Remove incomplete and buggy support for text-orientation in Servo. Make the property values align with Gecko and the latest draft of CSS Writing Modes Level 3.
This commit is contained in:
parent
bd72da5f02
commit
b3820c1296
9 changed files with 78 additions and 63 deletions
|
@ -1659,11 +1659,9 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
|
||||
// Determine the orientation and cursor to use.
|
||||
let (orientation, cursor) = if self.style.writing_mode.is_vertical() {
|
||||
if self.style.writing_mode.is_sideways_left() {
|
||||
(TextOrientation::SidewaysLeft, Cursor::VerticalText)
|
||||
} else {
|
||||
(TextOrientation::SidewaysRight, Cursor::VerticalText)
|
||||
}
|
||||
// TODO: Distinguish between 'sideways-lr' and 'sideways-rl' writing modes in CSS
|
||||
// Writing Modes Level 4.
|
||||
(TextOrientation::SidewaysRight, Cursor::VerticalText)
|
||||
} else {
|
||||
(TextOrientation::Upright, Cursor::Text)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue