Repository navigation
Editorial review: Add reading-flow and reading-order docs - #39404
Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…t into Praveen7294-add-reading-flow-docs
estelle
left a comment
There was a problem hiding this comment.
A second pass. After this I think we will be close if not fully there.
estelle
left a comment
There was a problem hiding this comment.
still need to review reading-order
|
I am having issues with the |
|
Inline elements supporting reading-order example: https://codepen.io/estelle/pen/zxGOvLB |
|
I had a few instances where reading-order worked with reading-flow: normal, but now I can't seem to replicate it, so thinking the JS may have been setting the |
estelle
left a comment
There was a problem hiding this comment.
i think there may be a bug in the spec or in the implementation, but i went ahead and reviewed it
estelle
left a comment
There was a problem hiding this comment.
Ooops. Started reviewing before the tabindex info was added to the property pages. So, submitting the few tweaks, and will revisit when you let me know to revisit.
| - Reading flow | ||
| - : A modified reading order. | ||
| - Reading flow container | ||
| - : An element with a reading flow set on it. |
There was a problem hiding this comment.
let me know if you want me to create the other glossary page.
There was a problem hiding this comment.
I don't agree with you on this point, but you seem pretty determined about this. Do you think you can do it as a separate PR after this one has been merged, so as not to hold it up?
There was a problem hiding this comment.
Is "reading flow" here the thing that in the spec is called "rendering-defined sibling reading flow" (https://drafts.csswg.org/css-display-4/#rendering-defined-sibling-reading-flow)? Because if so, these definitions seem to be backwards. The spec defines "rendering-defined sibling reading flow" in terms of "reading flow container", but this reverses that, defining "reading flow container" in terms of "reading flow".
Which is a problem, because the only solid (i.e. spec-derived) definition of "reading flow" is in terms of "reading flow container", so you have a circularity.
FWIW I don't think this needs a separate glossary entry, but as it stands, in this glossary entry, it's unclear that these are formal CSS terms, as it goes straight from general prose into this DL, without any context. I think it needs a heading like "Setting reading order in CSS" before it starts talking about the CSS properties, and then a line to introduce these definitions so I know what I'm staring at.
And if we're going to include these as official CSS spec terms, we should be precise about them.
(I think the scroll snap comparison is instructive, and I have the same issues with contextualization there).
There was a problem hiding this comment.
Thanks, @wbamberg. I've read the spec again, and you are right — I did have the definitions the opposite way round. I've modified the definitions so that "reading flow container" is defined first, and "reading flow" is defined in terms of it.
I've also added a heading and a sentence to introduce the terms so that it flows better.
I'm not exactly sure about including the official spec terms in both cases; I mean, the official spec term for reading flow is "rendering-defined sibling reading flow", but I thought that was a bit wordy and unhelpful for the MDN audience, so I chose "reading-flow" ;-)
But yes, I appreciate the need for precision in such a case.
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Description
Completing work originally started by @Praveen7294 in #38859, on documenting the
reading-flowandreading-orderproperties.See https://drafts.csswg.org/css-display-4/#reading-flow for the specification.
This PR adds ref pages for the two properties, but also updates the CSS Display module page to suit, and adds a glossary entry for "reading order".
Motivation
Additional details
Related issues and pull requests