CSS direction
property docs should mention that it affects grid cell layout
#38094
+3
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I was reading through CSS grid docs and began to consider how directionality would affect cell layout. (And also visual interpretation of grid lines -- grid line 1 would be on right instead of left if
rtl
-- but because the numbering remains consistent with source order this probably doesn't need to be documented.)I saw that CSS
direction
docs mention effect on table cell layout but neglect to mention grid cell layout as well. This is simple to fix and syncsdirection
documentation to mention effect upon a relatively newer spec.Additional details
You can readily verify this behavior by loading this example and changing the
ltr
class on thewrapper
<div>
tortl
. The second line's cell will run between column lines 2 and 4 (1-indexed) visibly differently in the two cases, according to the affected line numbering. And the first line's cells will automatically run in accordance with the applied direction.