So I have two questions:
- When do i need to use “writing mode” property with “direction” property?
- And why there’s no horizontal-rtl and horizontal-ltr values in the “Writing mode” property?
So I have two questions:
Writing mode is what you would use is for left to right(default) and vertical which would be text going down from the top, direction is the flow of text right to left or left to right. Horizontal- rtl and horizontal-ltr are selectors in CSS
and values in HTML
.
Please take a look here:
The three possible values for the writing-mode
property are:
horizontal-tb
: Top-to-bottom block flow direction. Sentences run horizontally.vertical-rl
: Right-to-left block flow direction. Sentences run vertically.vertical-lr
: Left-to-right block flow direction. Sentences run vertically.It puzzles me that there 3 values, we have rtl and ltr for vertical but not horizontal?
Also im reading this
https://drafts.csswg.org/css-writing-modes/