Skip to content

Editorial review: Add reading-flow and reading-order docs - #39404

Merged
wbamberg merged 35 commits into
mdn:mainfrom
chrisdavidmills:Praveen7294-add-reading-flow-docs
May 29, 2025
Merged

wbamberg merged 35 commits into
mdn:mainfrom
chrisdavidmills:Praveen7294-add-reading-flow-docs

Conversation

@chrisdavidmills

Copy link
Copy Markdown
Contributor

Description

Completing work originally started by @Praveen7294 in #38859, on documenting the reading-flow and reading-order properties.

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

Praveen7294 and others added 20 commits March 30, 2025 06:05
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>
@chrisdavidmills
chrisdavidmills requested review from a team and bsmth and removed request for a team May 5, 2025 10:33
@github-actions github-actions Bot added Content:CSS Cascading Style Sheets docs Content:Glossary Glossary entries size/m [PR only] 51-500 LoC changed labels May 5, 2025
@chrisdavidmills chrisdavidmills changed the title Praveen7294 add reading flow docs Add reading-flow and reading-order docs May 5, 2025
@chrisdavidmills
chrisdavidmills requested review from a team and estelle and removed request for a team May 15, 2025 17:51
@github-actions github-actions Bot added the Content:HTML Hypertext Markup Language docs label May 15, 2025

@estelle estelle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A second pass. After this I think we will be close if not fully there.

Comment thread files/en-us/web/css/order/index.md Resolved
@chrisdavidmills
chrisdavidmills requested a review from estelle May 20, 2025 11:22

@estelle estelle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still need to review reading-order

@estelle

estelle commented May 22, 2025

Copy link
Copy Markdown
Member

I am having issues with the reading-order specification versus the implementation. I am able to get reading-order to impact the reading order of non-block level elements of block reading flow containers (have other than normal set). I am also able to get reading-order to work on block-level children of containers that are not themselves reading flow containers (the parent defaulting to normal).

@estelle

estelle commented May 22, 2025

Copy link
Copy Markdown
Member

@estelle

estelle commented May 23, 2025

Copy link
Copy Markdown
Member

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 reading-order: source-order and I didn't catch it.

@estelle estelle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think there may be a bug in the spec or in the implementation, but i went ahead and reviewed it

@estelle estelle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +17 to +20
- Reading flow
- : A modified reading order.
- Reading flow container
- : An element with a reading flow set on it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me know if you want me to create the other glossary page.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@wbamberg wbamberg May 28, 2025 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates!

@wbamberg
wbamberg merged commit 7dda25d into mdn:main May 29, 2025
@chrisdavidmills
chrisdavidmills deleted the Praveen7294-add-reading-flow-docs branch May 30, 2025 06:26
@chrisdavidmills

Copy link
Copy Markdown
Contributor Author

@estelle @wbamberg super, cheers folks!

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Content:CSS Cascading Style Sheets docs Content:Glossary Glossary entries Content:HTML Hypertext Markup Language docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants