When a card grid looks correct but keyboard focus jumps in a confusing order, changing the visual position of boxes is not enough. A page has source order, visual order and linear reading or navigation order, and those sequences can diverge.
The CSS Display Level 4 draft defines reading-flow for block, flex and grid containers. Its values can keep DOM order or derive a reading sequence from flex or grid layout. The property affects speech rendering and linear sequential navigation, but it does not change layout or painting order.
This guide teaches the property with cautious, current-spec reasoning: logical source order first, value-by-value examples, reading-order overrides, writing modes, responsive layouts, fallback behaviour, keyboard and assistive-technology checks, explained practice and parent decisions.
Punggol families can use this guide in short sessions around homework, CCAs and rest. The examples are proposed learning activities. They do not claim a physical tuition branch, timetable, fee, class size, school relationship or guaranteed result.
Use disposable data and repositories, preserve backups and check version-sensitive details against the linked primary source. Current documentation settles a technical contract; observation and explanation turn that contract into usable knowledge.
Find your next learning step
Choose the route that matches the present difficulty. A complete course can follow the index in order; a repair session can begin at the first unstable distinction.
Build the model
Chapters 1–4. Model source order, visual layout and linear reading as separate sequences.
Read the contract
Chapters 5–8. Read every reading-flow value and its container condition precisely.
Test the boundary
Chapters 9–12. Test keyboard focus, speech order, writing modes and unsupported browsers.
Diagnose and repair
Chapters 13–16. Diagnose mismatches without changing paint order accidentally.
Transfer with judgment
Chapters 17–20. Choose semantic DOM repair, reading-flow or reading-order by the actual accessibility job.
Open the full chapter index · Jump to capstone practice · Use the How Studying Works hub · Read the primary technical source
Complete chapter index
Chapters 1–4 · Build the model
Chapters 5–8 · Read the contract
Chapters 9–12 · Test the boundary
Chapters 13–16 · Diagnose and repair
Source order, visual layout order and linear reading or navigation order are distinct concepts. That is the invariant to preserve when names, data or surrounding project details change.
A page can look correct while focus or speech moves differently. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is judging accessibility from a screenshot alone. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
// DOM: A B C
// visual: C A B
// focus: A B CExplained result. The three lists expose exactly which relationship needs repair. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace every item across all three sequences. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “Three orders must be drawn separately”, separate contract from coincidence. The contract is “Source order, visual layout order and linear reading or navigation order are distinct concepts.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Write the DOM sequence, visual sequence and expected focus sequence before adding CSS.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “Three orders must be drawn separately” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “Source order, visual layout order and linear reading or navigation order are distinct concepts.” should remain invariant and what observation would expose judging accessibility from a screenshot alone.
Reasoned route. Begin with “Source order, visual layout order and linear reading or navigation order are distinct concepts.” Apply this procedure: Write the DOM sequence, visual sequence and expected focus sequence before adding CSS. For the homework evidence folder, introduce one controlled variation that exposes judging accessibility from a screenshot alone. The three lists expose exactly which relationship needs repair. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “Three orders must be drawn separately” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “Source order, visual layout order and linear reading or navigation order are distinct concepts.” should remain invariant and what observation would expose judging accessibility from a screenshot alone.
Reasoned route. Begin with “Source order, visual layout order and linear reading or navigation order are distinct concepts.” Apply this procedure: Write the DOM sequence, visual sequence and expected focus sequence before adding CSS. For the CCA media catalogue, introduce one controlled variation that exposes judging accessibility from a screenshot alone. The three lists expose exactly which relationship needs repair. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “Three orders must be drawn separately” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “Source order, visual layout order and linear reading or navigation order are distinct concepts.” should remain invariant and what observation would expose judging accessibility from a screenshot alone.
Reasoned route. Begin with “Source order, visual layout order and linear reading or navigation order are distinct concepts.” Apply this procedure: Write the DOM sequence, visual sequence and expected focus sequence before adding CSS. For the science investigation archive, introduce one controlled variation that exposes judging accessibility from a screenshot alone. The three lists expose exactly which relationship needs repair. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “Three orders must be drawn separately” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “Source order, visual layout order and linear reading or navigation order are distinct concepts.” should remain invariant and what observation would expose judging accessibility from a screenshot alone.
Reasoned route. Begin with “Source order, visual layout order and linear reading or navigation order are distinct concepts.” Apply this procedure: Write the DOM sequence, visual sequence and expected focus sequence before adding CSS. For the revision-note builder, introduce one controlled variation that exposes judging accessibility from a screenshot alone. The three lists expose exactly which relationship needs repair. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals judging accessibility from a screenshot alone.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Write the DOM sequence, visual sequence and expected focus sequence before adding CSS.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “Three orders must be drawn separately”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests Source order, visual layout order and linear reading or navigation order are distinct concepts.?”, and “Can you make a smaller example of judging accessibility from a screenshot alone?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Draw the sequences for three links reordered with flex order. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The visual list may differ while default focus still follows the DOM. The final output alone earns only partial credit. A strong answer connects it to “Source order, visual layout order and linear reading or navigation order are distinct concepts.”, shows the relevant intermediate evidence and states why judging accessibility from a screenshot alone would lead to a different conclusion.
Decision and transfer
Do not change reading order until the intended logical order is explicit. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “Three orders must be drawn separately” means the learner can predict the ordinary case, recognise judging accessibility from a screenshot alone, diagnose the earliest mistaken assumption, recover with “Write the DOM sequence, visual sequence and expected focus sequence before adding CSS.” and defend this decision: Do not change reading order until the intended logical order is explicit. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
The initial reading-flow value is normal, which follows the order of elements in the DOM. That is the invariant to preserve when names, data or surrounding project details change.
Normal preserves the document’s logical sequence for linear use. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is assuming grid placement automatically rewrites focus order. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
grid{reading-flow:normal}Explained result. The default linear sequence remains DOM order even if boxes are visually rearranged. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace DOM position rather than screen coordinates. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “normal follows DOM order”, separate contract from coincidence. The contract is “The initial reading-flow value is normal, which follows the order of elements in the DOM.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Remove reading-flow and test tab order against source markup.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “normal follows DOM order” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “The initial reading-flow value is normal, which follows the order of elements in the DOM.” should remain invariant and what observation would expose assuming grid placement automatically rewrites focus order.
Reasoned route. Begin with “The initial reading-flow value is normal, which follows the order of elements in the DOM.” Apply this procedure: Remove reading-flow and test tab order against source markup. For the homework evidence folder, introduce one controlled variation that exposes assuming grid placement automatically rewrites focus order. The default linear sequence remains DOM order even if boxes are visually rearranged. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “normal follows DOM order” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “The initial reading-flow value is normal, which follows the order of elements in the DOM.” should remain invariant and what observation would expose assuming grid placement automatically rewrites focus order.
Reasoned route. Begin with “The initial reading-flow value is normal, which follows the order of elements in the DOM.” Apply this procedure: Remove reading-flow and test tab order against source markup. For the CCA media catalogue, introduce one controlled variation that exposes assuming grid placement automatically rewrites focus order. The default linear sequence remains DOM order even if boxes are visually rearranged. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “normal follows DOM order” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “The initial reading-flow value is normal, which follows the order of elements in the DOM.” should remain invariant and what observation would expose assuming grid placement automatically rewrites focus order.
Reasoned route. Begin with “The initial reading-flow value is normal, which follows the order of elements in the DOM.” Apply this procedure: Remove reading-flow and test tab order against source markup. For the science investigation archive, introduce one controlled variation that exposes assuming grid placement automatically rewrites focus order. The default linear sequence remains DOM order even if boxes are visually rearranged. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “normal follows DOM order” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “The initial reading-flow value is normal, which follows the order of elements in the DOM.” should remain invariant and what observation would expose assuming grid placement automatically rewrites focus order.
Reasoned route. Begin with “The initial reading-flow value is normal, which follows the order of elements in the DOM.” Apply this procedure: Remove reading-flow and test tab order against source markup. For the revision-note builder, introduce one controlled variation that exposes assuming grid placement automatically rewrites focus order. The default linear sequence remains DOM order even if boxes are visually rearranged. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals assuming grid placement automatically rewrites focus order.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Remove reading-flow and test tab order against source markup.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “normal follows DOM order”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests The initial reading-flow value is normal, which follows the order of elements in the DOM.?”, and “Can you make a smaller example of assuming grid placement automatically rewrites focus order?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Place grid items in named areas out of source order. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The visual arrangement changes while normal keeps DOM reading order. The final output alone earns only partial credit. A strong answer connects it to “The initial reading-flow value is normal, which follows the order of elements in the DOM.”, shows the relevant intermediate evidence and states why assuming grid placement automatically rewrites focus order would lead to a different conclusion.
Decision and transfer
Use a logical DOM as the strongest baseline. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “normal follows DOM order” means the learner can predict the ordinary case, recognise assuming grid placement automatically rewrites focus order, diagnose the earliest mistaken assumption, recover with “Remove reading-flow and test tab order against source markup.” and defend this decision: Use a logical DOM as the strongest baseline. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container. That is the invariant to preserve when names, data or surrounding project details change.
The effect is scoped to the container’s children rather than the whole page by accident. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is setting a value on one item and expecting its siblings to reorder globally. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
nav{display:grid;reading-flow:grid-rows}Explained result. Only the chosen container establishes that sibling reading flow. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace container boundary and child list. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “The property creates a reading flow container”, separate contract from coincidence. The contract is “A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Apply reading-flow to the intended parent and identify its direct children.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “The property creates a reading flow container” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container.” should remain invariant and what observation would expose setting a value on one item and expecting its siblings to reorder globally.
Reasoned route. Begin with “A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container.” Apply this procedure: Apply reading-flow to the intended parent and identify its direct children. For the homework evidence folder, introduce one controlled variation that exposes setting a value on one item and expecting its siblings to reorder globally. Only the chosen container establishes that sibling reading flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “The property creates a reading flow container” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container.” should remain invariant and what observation would expose setting a value on one item and expecting its siblings to reorder globally.
Reasoned route. Begin with “A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container.” Apply this procedure: Apply reading-flow to the intended parent and identify its direct children. For the CCA media catalogue, introduce one controlled variation that exposes setting a value on one item and expecting its siblings to reorder globally. Only the chosen container establishes that sibling reading flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “The property creates a reading flow container” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container.” should remain invariant and what observation would expose setting a value on one item and expecting its siblings to reorder globally.
Reasoned route. Begin with “A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container.” Apply this procedure: Apply reading-flow to the intended parent and identify its direct children. For the science investigation archive, introduce one controlled variation that exposes setting a value on one item and expecting its siblings to reorder globally. Only the chosen container establishes that sibling reading flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “The property creates a reading flow container” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container.” should remain invariant and what observation would expose setting a value on one item and expecting its siblings to reorder globally.
Reasoned route. Begin with “A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container.” Apply this procedure: Apply reading-flow to the intended parent and identify its direct children. For the revision-note builder, introduce one controlled variation that exposes setting a value on one item and expecting its siblings to reorder globally. Only the chosen container establishes that sibling reading flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals setting a value on one item and expecting its siblings to reorder globally.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Apply reading-flow to the intended parent and identify its direct children.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “The property creates a reading flow container”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container.?”, and “Can you make a smaller example of setting a value on one item and expecting its siblings to reorder globally?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Nest a card component inside a page grid. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. Each level can keep its own deliberate sequence. The final output alone earns only partial credit. A strong answer connects it to “A block, flex or grid container with a valid reading-flow value other than normal is a reading flow container.”, shows the relevant intermediate evidence and states why setting a value on one item and expecting its siblings to reorder globally would lead to a different conclusion.
Decision and transfer
Scope reading behaviour to the smallest coherent component. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “The property creates a reading flow container” means the learner can predict the ordinary case, recognise setting a value on one item and expecting its siblings to reorder globally, diagnose the earliest mistaken assumption, recover with “Apply reading-flow to the intended parent and identify its direct children.” and defend this decision: Scope reading behaviour to the smallest coherent component. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
The property controls the order in which elements are rendered to speech or reached by linear sequential navigation. That is the invariant to preserve when names, data or surrounding project details change.
Its purpose is linear reading and focus coordination, not geometry. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is using it to move a box on screen. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.cards{reading-flow:grid-rows}Explained result. The sequence can change without a visual move. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace focus movement independently of box coordinates. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “reading-flow affects speech and sequential navigation”, separate contract from coincidence. The contract is “The property controls the order in which elements are rendered to speech or reached by linear sequential navigation.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Test Tab order and accessibility output while separately inspecting layout.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “reading-flow affects speech and sequential navigation” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “The property controls the order in which elements are rendered to speech or reached by linear sequential navigation.” should remain invariant and what observation would expose using it to move a box on screen.
Reasoned route. Begin with “The property controls the order in which elements are rendered to speech or reached by linear sequential navigation.” Apply this procedure: Test Tab order and accessibility output while separately inspecting layout. For the homework evidence folder, introduce one controlled variation that exposes using it to move a box on screen. The sequence can change without a visual move. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “reading-flow affects speech and sequential navigation” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “The property controls the order in which elements are rendered to speech or reached by linear sequential navigation.” should remain invariant and what observation would expose using it to move a box on screen.
Reasoned route. Begin with “The property controls the order in which elements are rendered to speech or reached by linear sequential navigation.” Apply this procedure: Test Tab order and accessibility output while separately inspecting layout. For the CCA media catalogue, introduce one controlled variation that exposes using it to move a box on screen. The sequence can change without a visual move. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “reading-flow affects speech and sequential navigation” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “The property controls the order in which elements are rendered to speech or reached by linear sequential navigation.” should remain invariant and what observation would expose using it to move a box on screen.
Reasoned route. Begin with “The property controls the order in which elements are rendered to speech or reached by linear sequential navigation.” Apply this procedure: Test Tab order and accessibility output while separately inspecting layout. For the science investigation archive, introduce one controlled variation that exposes using it to move a box on screen. The sequence can change without a visual move. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “reading-flow affects speech and sequential navigation” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “The property controls the order in which elements are rendered to speech or reached by linear sequential navigation.” should remain invariant and what observation would expose using it to move a box on screen.
Reasoned route. Begin with “The property controls the order in which elements are rendered to speech or reached by linear sequential navigation.” Apply this procedure: Test Tab order and accessibility output while separately inspecting layout. For the revision-note builder, introduce one controlled variation that exposes using it to move a box on screen. The sequence can change without a visual move. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals using it to move a box on screen.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Test Tab order and accessibility output while separately inspecting layout.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “reading-flow affects speech and sequential navigation”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests The property controls the order in which elements are rendered to speech or reached by linear sequential navigation.?”, and “Can you make a smaller example of using it to move a box on screen?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Explain why the screenshot can remain identical after adding reading-flow. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The property does not change the visual canvas. The final output alone earns only partial credit. A strong answer connects it to “The property controls the order in which elements are rendered to speech or reached by linear sequential navigation.”, shows the relevant intermediate evidence and states why using it to move a box on screen would lead to a different conclusion.
Decision and transfer
Pair accessibility tests with visual regression tests. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “reading-flow affects speech and sequential navigation” means the learner can predict the ordinary case, recognise using it to move a box on screen, diagnose the earliest mistaken assumption, recover with “Test Tab order and accessibility output while separately inspecting layout.” and defend this decision: Pair accessibility tests with visual regression tests. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
The specification states that reading-flow affects neither layout nor painting order. That is the invariant to preserve when names, data or surrounding project details change.
This boundary prevents authors from expecting one declaration to redesign the page. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is adding reading-flow and debugging why cards stay put. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.grid{display:grid;reading-flow:grid-columns}Explained result. Visual positions remain governed by layout properties. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace layout calculation before reading sequence calculation. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “It does not affect layout or painting”, separate contract from coincidence. The contract is “The specification states that reading-flow affects neither layout nor painting order.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Use grid, flex, order or DOM changes for layout, and reading-flow only for the linear sequence.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “It does not affect layout or painting” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “The specification states that reading-flow affects neither layout nor painting order.” should remain invariant and what observation would expose adding reading-flow and debugging why cards stay put.
Reasoned route. Begin with “The specification states that reading-flow affects neither layout nor painting order.” Apply this procedure: Use grid, flex, order or DOM changes for layout, and reading-flow only for the linear sequence. For the homework evidence folder, introduce one controlled variation that exposes adding reading-flow and debugging why cards stay put. Visual positions remain governed by layout properties. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “It does not affect layout or painting” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “The specification states that reading-flow affects neither layout nor painting order.” should remain invariant and what observation would expose adding reading-flow and debugging why cards stay put.
Reasoned route. Begin with “The specification states that reading-flow affects neither layout nor painting order.” Apply this procedure: Use grid, flex, order or DOM changes for layout, and reading-flow only for the linear sequence. For the CCA media catalogue, introduce one controlled variation that exposes adding reading-flow and debugging why cards stay put. Visual positions remain governed by layout properties. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “It does not affect layout or painting” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “The specification states that reading-flow affects neither layout nor painting order.” should remain invariant and what observation would expose adding reading-flow and debugging why cards stay put.
Reasoned route. Begin with “The specification states that reading-flow affects neither layout nor painting order.” Apply this procedure: Use grid, flex, order or DOM changes for layout, and reading-flow only for the linear sequence. For the science investigation archive, introduce one controlled variation that exposes adding reading-flow and debugging why cards stay put. Visual positions remain governed by layout properties. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “It does not affect layout or painting” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “The specification states that reading-flow affects neither layout nor painting order.” should remain invariant and what observation would expose adding reading-flow and debugging why cards stay put.
Reasoned route. Begin with “The specification states that reading-flow affects neither layout nor painting order.” Apply this procedure: Use grid, flex, order or DOM changes for layout, and reading-flow only for the linear sequence. For the revision-note builder, introduce one controlled variation that exposes adding reading-flow and debugging why cards stay put. Visual positions remain governed by layout properties. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals adding reading-flow and debugging why cards stay put.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Use grid, flex, order or DOM changes for layout, and reading-flow only for the linear sequence.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “It does not affect layout or painting”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests The specification states that reading-flow affects neither layout nor painting order.?”, and “Can you make a smaller example of adding reading-flow and debugging why cards stay put?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Compare computed positions before and after reading-flow. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. They should be unchanged while navigation order may differ. The final output alone earns only partial credit. A strong answer connects it to “The specification states that reading-flow affects neither layout nor painting order.”, shows the relevant intermediate evidence and states why adding reading-flow and debugging why cards stay put would lead to a different conclusion.
Decision and transfer
Choose separate tools for visual and linear order. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “It does not affect layout or painting” means the learner can predict the ordinary case, recognise adding reading-flow and debugging why cards stay put, diagnose the earliest mistaken assumption, recover with “Use grid, flex, order or DOM changes for layout, and reading-flow only for the linear sequence.” and defend this decision: Choose separate tools for visual and linear order. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
source-order follows DOM order while creating a reading flow container that enables reading-order on direct children. That is the invariant to preserve when names, data or surrounding project details change.
It provides an explicit local sequence without deriving it from visual placement. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is expecting source-order alone to rearrange children. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.panel{reading-flow:source-order}
.urgent{reading-order:-1}Explained result. Without overrides, the sequence remains DOM order; with an override, the child can move in the reading flow. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace ordinal group then DOM tie-break. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “source-order enables child overrides”, separate contract from coincidence. The contract is “source-order follows DOM order while creating a reading flow container that enables reading-order on direct children.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Apply reading-order to a direct child and compare integer groups.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “source-order enables child overrides” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “source-order follows DOM order while creating a reading flow container that enables reading-order on direct children.” should remain invariant and what observation would expose expecting source-order alone to rearrange children.
Reasoned route. Begin with “source-order follows DOM order while creating a reading flow container that enables reading-order on direct children.” Apply this procedure: Apply reading-order to a direct child and compare integer groups. For the homework evidence folder, introduce one controlled variation that exposes expecting source-order alone to rearrange children. Without overrides, the sequence remains DOM order; with an override, the child can move in the reading flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “source-order enables child overrides” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “source-order follows DOM order while creating a reading flow container that enables reading-order on direct children.” should remain invariant and what observation would expose expecting source-order alone to rearrange children.
Reasoned route. Begin with “source-order follows DOM order while creating a reading flow container that enables reading-order on direct children.” Apply this procedure: Apply reading-order to a direct child and compare integer groups. For the CCA media catalogue, introduce one controlled variation that exposes expecting source-order alone to rearrange children. Without overrides, the sequence remains DOM order; with an override, the child can move in the reading flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “source-order enables child overrides” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “source-order follows DOM order while creating a reading flow container that enables reading-order on direct children.” should remain invariant and what observation would expose expecting source-order alone to rearrange children.
Reasoned route. Begin with “source-order follows DOM order while creating a reading flow container that enables reading-order on direct children.” Apply this procedure: Apply reading-order to a direct child and compare integer groups. For the science investigation archive, introduce one controlled variation that exposes expecting source-order alone to rearrange children. Without overrides, the sequence remains DOM order; with an override, the child can move in the reading flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “source-order enables child overrides” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “source-order follows DOM order while creating a reading flow container that enables reading-order on direct children.” should remain invariant and what observation would expose expecting source-order alone to rearrange children.
Reasoned route. Begin with “source-order follows DOM order while creating a reading flow container that enables reading-order on direct children.” Apply this procedure: Apply reading-order to a direct child and compare integer groups. For the revision-note builder, introduce one controlled variation that exposes expecting source-order alone to rearrange children. Without overrides, the sequence remains DOM order; with an override, the child can move in the reading flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals expecting source-order alone to rearrange children.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Apply reading-order to a direct child and compare integer groups.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “source-order enables child overrides”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests source-order follows DOM order while creating a reading flow container that enables reading-order on direct children.?”, and “Can you make a smaller example of expecting source-order alone to rearrange children?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Move the third direct link into reading group -1. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. That link is visited before default group 0 siblings. The final output alone earns only partial credit. A strong answer connects it to “source-order follows DOM order while creating a reading flow container that enables reading-order on direct children.”, shows the relevant intermediate evidence and states why expecting source-order alone to rearrange children would lead to a different conclusion.
Decision and transfer
Use overrides sparingly and visibly. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “source-order enables child overrides” means the learner can predict the ordinary case, recognise expecting source-order alone to rearrange children, diagnose the earliest mistaken assumption, recover with “Apply reading-order to a direct child and compare integer groups.” and defend this decision: Use overrides sparingly and visibly. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
On a flex container, flex-visual follows the visual reading order while taking writing mode into account. That is the invariant to preserve when names, data or surrounding project details change.
Visual left-to-right or top-to-bottom perception depends on language direction and writing mode. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is equating visual order with one fixed left-to-right rule. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.row{display:flex;flex-direction:row-reverse;reading-flow:flex-visual}Explained result. The reading sequence follows the visual perception order defined for that context. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace physical placement and writing-mode-aware reading direction. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “flex-visual follows visual reading order”, separate contract from coincidence. The contract is “On a flex container, flex-visual follows the visual reading order while taking writing mode into account.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Record writing-mode, direction, flex direction and actual placement before predicting.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “flex-visual follows visual reading order” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “On a flex container, flex-visual follows the visual reading order while taking writing mode into account.” should remain invariant and what observation would expose equating visual order with one fixed left-to-right rule.
Reasoned route. Begin with “On a flex container, flex-visual follows the visual reading order while taking writing mode into account.” Apply this procedure: Record writing-mode, direction, flex direction and actual placement before predicting. For the homework evidence folder, introduce one controlled variation that exposes equating visual order with one fixed left-to-right rule. The reading sequence follows the visual perception order defined for that context. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “flex-visual follows visual reading order” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “On a flex container, flex-visual follows the visual reading order while taking writing mode into account.” should remain invariant and what observation would expose equating visual order with one fixed left-to-right rule.
Reasoned route. Begin with “On a flex container, flex-visual follows the visual reading order while taking writing mode into account.” Apply this procedure: Record writing-mode, direction, flex direction and actual placement before predicting. For the CCA media catalogue, introduce one controlled variation that exposes equating visual order with one fixed left-to-right rule. The reading sequence follows the visual perception order defined for that context. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “flex-visual follows visual reading order” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “On a flex container, flex-visual follows the visual reading order while taking writing mode into account.” should remain invariant and what observation would expose equating visual order with one fixed left-to-right rule.
Reasoned route. Begin with “On a flex container, flex-visual follows the visual reading order while taking writing mode into account.” Apply this procedure: Record writing-mode, direction, flex direction and actual placement before predicting. For the science investigation archive, introduce one controlled variation that exposes equating visual order with one fixed left-to-right rule. The reading sequence follows the visual perception order defined for that context. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “flex-visual follows visual reading order” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “On a flex container, flex-visual follows the visual reading order while taking writing mode into account.” should remain invariant and what observation would expose equating visual order with one fixed left-to-right rule.
Reasoned route. Begin with “On a flex container, flex-visual follows the visual reading order while taking writing mode into account.” Apply this procedure: Record writing-mode, direction, flex direction and actual placement before predicting. For the revision-note builder, introduce one controlled variation that exposes equating visual order with one fixed left-to-right rule. The reading sequence follows the visual perception order defined for that context. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals equating visual order with one fixed left-to-right rule.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Record writing-mode, direction, flex direction and actual placement before predicting.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “flex-visual follows visual reading order”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests On a flex container, flex-visual follows the visual reading order while taking writing mode into account.?”, and “Can you make a smaller example of equating visual order with one fixed left-to-right rule?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Test row-reverse in left-to-right and right-to-left contexts. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The prediction must account for writing mode rather than memorising reversal. The final output alone earns only partial credit. A strong answer connects it to “On a flex container, flex-visual follows the visual reading order while taking writing mode into account.”, shows the relevant intermediate evidence and states why equating visual order with one fixed left-to-right rule would lead to a different conclusion.
Decision and transfer
Use flex-visual only when visual sequence is the intended linear sequence. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “flex-visual follows visual reading order” means the learner can predict the ordinary case, recognise equating visual order with one fixed left-to-right rule, diagnose the earliest mistaken assumption, recover with “Record writing-mode, direction, flex direction and actual placement before predicting.” and defend this decision: Use flex-visual only when visual sequence is the intended linear sequence. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
On a flex container, flex-flow follows the direction established by flex flow. That is the invariant to preserve when names, data or surrounding project details change.
This differs from asking for visual reading order under all writing modes. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is treating flex-flow and flex-visual as synonyms. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.steps{display:flex;flex-flow:row-reverse wrap;reading-flow:flex-flow}Explained result. The sequence follows the container’s flex flow rule. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace flex-flow order before focus order. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “flex-flow follows the flex-flow direction”, separate contract from coincidence. The contract is “On a flex container, flex-flow follows the direction established by flex flow.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Build a matrix of flex-direction, wrapping and writing mode for the actual component.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “flex-flow follows the flex-flow direction” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “On a flex container, flex-flow follows the direction established by flex flow.” should remain invariant and what observation would expose treating flex-flow and flex-visual as synonyms.
Reasoned route. Begin with “On a flex container, flex-flow follows the direction established by flex flow.” Apply this procedure: Build a matrix of flex-direction, wrapping and writing mode for the actual component. For the homework evidence folder, introduce one controlled variation that exposes treating flex-flow and flex-visual as synonyms. The sequence follows the container’s flex flow rule. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “flex-flow follows the flex-flow direction” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “On a flex container, flex-flow follows the direction established by flex flow.” should remain invariant and what observation would expose treating flex-flow and flex-visual as synonyms.
Reasoned route. Begin with “On a flex container, flex-flow follows the direction established by flex flow.” Apply this procedure: Build a matrix of flex-direction, wrapping and writing mode for the actual component. For the CCA media catalogue, introduce one controlled variation that exposes treating flex-flow and flex-visual as synonyms. The sequence follows the container’s flex flow rule. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “flex-flow follows the flex-flow direction” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “On a flex container, flex-flow follows the direction established by flex flow.” should remain invariant and what observation would expose treating flex-flow and flex-visual as synonyms.
Reasoned route. Begin with “On a flex container, flex-flow follows the direction established by flex flow.” Apply this procedure: Build a matrix of flex-direction, wrapping and writing mode for the actual component. For the science investigation archive, introduce one controlled variation that exposes treating flex-flow and flex-visual as synonyms. The sequence follows the container’s flex flow rule. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “flex-flow follows the flex-flow direction” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “On a flex container, flex-flow follows the direction established by flex flow.” should remain invariant and what observation would expose treating flex-flow and flex-visual as synonyms.
Reasoned route. Begin with “On a flex container, flex-flow follows the direction established by flex flow.” Apply this procedure: Build a matrix of flex-direction, wrapping and writing mode for the actual component. For the revision-note builder, introduce one controlled variation that exposes treating flex-flow and flex-visual as synonyms. The sequence follows the container’s flex flow rule. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals treating flex-flow and flex-visual as synonyms.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Build a matrix of flex-direction, wrapping and writing mode for the actual component.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “flex-flow follows the flex-flow direction”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests On a flex container, flex-flow follows the direction established by flex flow.?”, and “Can you make a smaller example of treating flex-flow and flex-visual as synonyms?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Compare flex-flow and flex-visual on a reversed row. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The spec gives them different governing concepts, so test the intended context. The final output alone earns only partial credit. A strong answer connects it to “On a flex container, flex-flow follows the direction established by flex flow.”, shows the relevant intermediate evidence and states why treating flex-flow and flex-visual as synonyms would lead to a different conclusion.
Decision and transfer
Choose the value whose rule matches the component. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “flex-flow follows the flex-flow direction” means the learner can predict the ordinary case, recognise treating flex-flow and flex-visual as synonyms, diagnose the earliest mistaken assumption, recover with “Build a matrix of flex-direction, wrapping and writing mode for the actual component.” and defend this decision: Choose the value whose rule matches the component. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account. That is the invariant to preserve when names, data or surrounding project details change.
Named areas and dense placement can make row order differ from DOM order. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is assuming grid row placement automatically changes keyboard order under normal. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.grid{display:grid;reading-flow:grid-rows}Explained result. The reading sequence follows row-wise visual placement. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace grid row, position within row and writing mode. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “grid-rows follows visual rows”, separate contract from coincidence. The contract is “On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Map each item to a visual row and then traverse rows in the relevant writing mode.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “grid-rows follows visual rows” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account.” should remain invariant and what observation would expose assuming grid row placement automatically changes keyboard order under normal.
Reasoned route. Begin with “On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account.” Apply this procedure: Map each item to a visual row and then traverse rows in the relevant writing mode. For the homework evidence folder, introduce one controlled variation that exposes assuming grid row placement automatically changes keyboard order under normal. The reading sequence follows row-wise visual placement. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “grid-rows follows visual rows” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account.” should remain invariant and what observation would expose assuming grid row placement automatically changes keyboard order under normal.
Reasoned route. Begin with “On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account.” Apply this procedure: Map each item to a visual row and then traverse rows in the relevant writing mode. For the CCA media catalogue, introduce one controlled variation that exposes assuming grid row placement automatically changes keyboard order under normal. The reading sequence follows row-wise visual placement. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “grid-rows follows visual rows” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account.” should remain invariant and what observation would expose assuming grid row placement automatically changes keyboard order under normal.
Reasoned route. Begin with “On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account.” Apply this procedure: Map each item to a visual row and then traverse rows in the relevant writing mode. For the science investigation archive, introduce one controlled variation that exposes assuming grid row placement automatically changes keyboard order under normal. The reading sequence follows row-wise visual placement. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “grid-rows follows visual rows” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account.” should remain invariant and what observation would expose assuming grid row placement automatically changes keyboard order under normal.
Reasoned route. Begin with “On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account.” Apply this procedure: Map each item to a visual row and then traverse rows in the relevant writing mode. For the revision-note builder, introduce one controlled variation that exposes assuming grid row placement automatically changes keyboard order under normal. The reading sequence follows row-wise visual placement. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals assuming grid row placement automatically changes keyboard order under normal.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Map each item to a visual row and then traverse rows in the relevant writing mode.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “grid-rows follows visual rows”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account.?”, and “Can you make a smaller example of assuming grid row placement automatically changes keyboard order under normal?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Arrange four DOM items in named areas and list row traversal. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The answer follows their visual row positions, not DOM labels. The final output alone earns only partial credit. A strong answer connects it to “On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account.”, shows the relevant intermediate evidence and states why assuming grid row placement automatically changes keyboard order under normal would lead to a different conclusion.
Decision and transfer
Use when row-wise visual reading is the intended accessible sequence. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “grid-rows follows visual rows” means the learner can predict the ordinary case, recognise assuming grid row placement automatically changes keyboard order under normal, diagnose the earliest mistaken assumption, recover with “Map each item to a visual row and then traverse rows in the relevant writing mode.” and defend this decision: Use when row-wise visual reading is the intended accessible sequence. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
On a grid container, grid-columns follows visual order by column with writing mode considered. That is the invariant to preserve when names, data or surrounding project details change.
A dashboard may communicate in columns rather than rows. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is assuming every grid should be read row-major. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.board{display:grid;reading-flow:grid-columns}Explained result. The sequence traverses the visual columns under the specification’s rule. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace column membership and within-column order. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “grid-columns follows visual columns”, separate contract from coincidence. The contract is “On a grid container, grid-columns follows visual order by column with writing mode considered.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Identify whether users understand the component by row or column before choosing.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “grid-columns follows visual columns” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-columns follows visual order by column with writing mode considered.” should remain invariant and what observation would expose assuming every grid should be read row-major.
Reasoned route. Begin with “On a grid container, grid-columns follows visual order by column with writing mode considered.” Apply this procedure: Identify whether users understand the component by row or column before choosing. For the homework evidence folder, introduce one controlled variation that exposes assuming every grid should be read row-major. The sequence traverses the visual columns under the specification’s rule. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “grid-columns follows visual columns” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-columns follows visual order by column with writing mode considered.” should remain invariant and what observation would expose assuming every grid should be read row-major.
Reasoned route. Begin with “On a grid container, grid-columns follows visual order by column with writing mode considered.” Apply this procedure: Identify whether users understand the component by row or column before choosing. For the CCA media catalogue, introduce one controlled variation that exposes assuming every grid should be read row-major. The sequence traverses the visual columns under the specification’s rule. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “grid-columns follows visual columns” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-columns follows visual order by column with writing mode considered.” should remain invariant and what observation would expose assuming every grid should be read row-major.
Reasoned route. Begin with “On a grid container, grid-columns follows visual order by column with writing mode considered.” Apply this procedure: Identify whether users understand the component by row or column before choosing. For the science investigation archive, introduce one controlled variation that exposes assuming every grid should be read row-major. The sequence traverses the visual columns under the specification’s rule. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “grid-columns follows visual columns” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-columns follows visual order by column with writing mode considered.” should remain invariant and what observation would expose assuming every grid should be read row-major.
Reasoned route. Begin with “On a grid container, grid-columns follows visual order by column with writing mode considered.” Apply this procedure: Identify whether users understand the component by row or column before choosing. For the revision-note builder, introduce one controlled variation that exposes assuming every grid should be read row-major. The sequence traverses the visual columns under the specification’s rule. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals assuming every grid should be read row-major.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Identify whether users understand the component by row or column before choosing.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “grid-columns follows visual columns”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests On a grid container, grid-columns follows visual order by column with writing mode considered.?”, and “Can you make a smaller example of assuming every grid should be read row-major?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Compare the same grid under grid-rows and grid-columns. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The two sequences differ while the picture stays the same. The final output alone earns only partial credit. A strong answer connects it to “On a grid container, grid-columns follows visual order by column with writing mode considered.”, shows the relevant intermediate evidence and states why assuming every grid should be read row-major would lead to a different conclusion.
Decision and transfer
Choose from information structure, not stylistic preference. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “grid-columns follows visual columns” means the learner can predict the ordinary case, recognise assuming every grid should be read row-major, diagnose the earliest mistaken assumption, recover with “Identify whether users understand the component by row or column before choosing.” and defend this decision: Choose from information structure, not stylistic preference. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
CHAPTER 11 OF 20 · Test the boundary
11. grid-order uses order-modified document order
On a grid container, grid-order follows order-modified document order. That is the invariant to preserve when names, data or surrounding project details change.
It is normally like DOM order unless the CSS order property changes ordinal groups. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is confusing grid-order with visual row traversal. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.grid{display:grid;reading-flow:grid-order}
.first{order:-1}Explained result. Items follow order groups, with source order resolving equal groups. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace order integer first, DOM tie second. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “grid-order uses order-modified document order”, separate contract from coincidence. The contract is “On a grid container, grid-order follows order-modified document order.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “List each item’s order value and DOM position before sorting ordinal groups.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “grid-order uses order-modified document order” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-order follows order-modified document order.” should remain invariant and what observation would expose confusing grid-order with visual row traversal.
Reasoned route. Begin with “On a grid container, grid-order follows order-modified document order.” Apply this procedure: List each item’s order value and DOM position before sorting ordinal groups. For the homework evidence folder, introduce one controlled variation that exposes confusing grid-order with visual row traversal. Items follow order groups, with source order resolving equal groups. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “grid-order uses order-modified document order” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-order follows order-modified document order.” should remain invariant and what observation would expose confusing grid-order with visual row traversal.
Reasoned route. Begin with “On a grid container, grid-order follows order-modified document order.” Apply this procedure: List each item’s order value and DOM position before sorting ordinal groups. For the CCA media catalogue, introduce one controlled variation that exposes confusing grid-order with visual row traversal. Items follow order groups, with source order resolving equal groups. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “grid-order uses order-modified document order” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-order follows order-modified document order.” should remain invariant and what observation would expose confusing grid-order with visual row traversal.
Reasoned route. Begin with “On a grid container, grid-order follows order-modified document order.” Apply this procedure: List each item’s order value and DOM position before sorting ordinal groups. For the science investigation archive, introduce one controlled variation that exposes confusing grid-order with visual row traversal. Items follow order groups, with source order resolving equal groups. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “grid-order uses order-modified document order” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “On a grid container, grid-order follows order-modified document order.” should remain invariant and what observation would expose confusing grid-order with visual row traversal.
Reasoned route. Begin with “On a grid container, grid-order follows order-modified document order.” Apply this procedure: List each item’s order value and DOM position before sorting ordinal groups. For the revision-note builder, introduce one controlled variation that exposes confusing grid-order with visual row traversal. Items follow order groups, with source order resolving equal groups. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals confusing grid-order with visual row traversal.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: List each item’s order value and DOM position before sorting ordinal groups.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “grid-order uses order-modified document order”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests On a grid container, grid-order follows order-modified document order.?”, and “Can you make a smaller example of confusing grid-order with visual row traversal?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Give one item order -1 and two items order 0. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The -1 item comes first; equal-zero items keep document order. The final output alone earns only partial credit. A strong answer connects it to “On a grid container, grid-order follows order-modified document order.”, shows the relevant intermediate evidence and states why confusing grid-order with visual row traversal would lead to a different conclusion.
Decision and transfer
Use only when order values already express the intended linear sequence. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “grid-order uses order-modified document order” means the learner can predict the ordinary case, recognise confusing grid-order with visual row traversal, diagnose the earliest mistaken assumption, recover with “List each item’s order value and DOM position before sorting ordinal groups.” and defend this decision: Use only when order values already express the intended linear sequence. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
CHAPTER 12 OF 20 · Test the boundary
12. Flex and grid values only take effect on matching containers
flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers. That is the invariant to preserve when names, data or surrounding project details change.
A syntactically valid declaration can be semantically irrelevant on the wrong layout. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is setting grid-rows on a flex box and assuming row traversal. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.list{display:flex;reading-flow:grid-rows}Explained result. The intended derived order appears only when the value matches its container kind. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace property value and container eligibility as separate checks. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “Flex and grid values only take effect on matching containers”, separate contract from coincidence. The contract is “flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Check computed display and reading-flow together.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “Flex and grid values only take effect on matching containers” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers.” should remain invariant and what observation would expose setting grid-rows on a flex box and assuming row traversal.
Reasoned route. Begin with “flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers.” Apply this procedure: Check computed display and reading-flow together. For the homework evidence folder, introduce one controlled variation that exposes setting grid-rows on a flex box and assuming row traversal. The intended derived order appears only when the value matches its container kind. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “Flex and grid values only take effect on matching containers” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers.” should remain invariant and what observation would expose setting grid-rows on a flex box and assuming row traversal.
Reasoned route. Begin with “flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers.” Apply this procedure: Check computed display and reading-flow together. For the CCA media catalogue, introduce one controlled variation that exposes setting grid-rows on a flex box and assuming row traversal. The intended derived order appears only when the value matches its container kind. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “Flex and grid values only take effect on matching containers” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers.” should remain invariant and what observation would expose setting grid-rows on a flex box and assuming row traversal.
Reasoned route. Begin with “flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers.” Apply this procedure: Check computed display and reading-flow together. For the science investigation archive, introduce one controlled variation that exposes setting grid-rows on a flex box and assuming row traversal. The intended derived order appears only when the value matches its container kind. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “Flex and grid values only take effect on matching containers” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers.” should remain invariant and what observation would expose setting grid-rows on a flex box and assuming row traversal.
Reasoned route. Begin with “flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers.” Apply this procedure: Check computed display and reading-flow together. For the revision-note builder, introduce one controlled variation that exposes setting grid-rows on a flex box and assuming row traversal. The intended derived order appears only when the value matches its container kind. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals setting grid-rows on a flex box and assuming row traversal.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Check computed display and reading-flow together.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “Flex and grid values only take effect on matching containers”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers.?”, and “Can you make a smaller example of setting grid-rows on a flex box and assuming row traversal?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Create matching and mismatching container fixtures. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. Only the matching layout supplies the promised ordering rule. The final output alone earns only partial credit. A strong answer connects it to “flex-* values apply meaningfully to flex containers, while grid-* values apply meaningfully to grid containers.”, shows the relevant intermediate evidence and states why setting grid-rows on a flex box and assuming row traversal would lead to a different conclusion.
Decision and transfer
Validate component layout before blaming focus tooling. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “Flex and grid values only take effect on matching containers” means the learner can predict the ordinary case, recognise setting grid-rows on a flex box and assuming row traversal, diagnose the earliest mistaken assumption, recover with “Check computed display and reading-flow together.” and defend this decision: Validate component layout before blaming focus tooling. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
CHAPTER 13 OF 20 · Diagnose and repair
13. The order property participates in derived flows
For flex-* and grid-* reading-flow values, the order property is taken into account. That is the invariant to preserve when names, data or surrounding project details change.
Visual and linear order can therefore depend on ordinal groups as well as placement. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is debugging focus only from DOM and grid coordinates. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.item.promoted{order:-1}Explained result. An item with a changed order can move within the derived reading sequence. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace order group before layout-derived tie-breaking. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “The order property participates in derived flows”, separate contract from coincidence. The contract is “For flex-* and grid-* reading-flow values, the order property is taken into account.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Record order values alongside layout positions.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “The order property participates in derived flows” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “For flex-* and grid-* reading-flow values, the order property is taken into account.” should remain invariant and what observation would expose debugging focus only from DOM and grid coordinates.
Reasoned route. Begin with “For flex-* and grid-* reading-flow values, the order property is taken into account.” Apply this procedure: Record order values alongside layout positions. For the homework evidence folder, introduce one controlled variation that exposes debugging focus only from DOM and grid coordinates. An item with a changed order can move within the derived reading sequence. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “The order property participates in derived flows” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “For flex-* and grid-* reading-flow values, the order property is taken into account.” should remain invariant and what observation would expose debugging focus only from DOM and grid coordinates.
Reasoned route. Begin with “For flex-* and grid-* reading-flow values, the order property is taken into account.” Apply this procedure: Record order values alongside layout positions. For the CCA media catalogue, introduce one controlled variation that exposes debugging focus only from DOM and grid coordinates. An item with a changed order can move within the derived reading sequence. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “The order property participates in derived flows” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “For flex-* and grid-* reading-flow values, the order property is taken into account.” should remain invariant and what observation would expose debugging focus only from DOM and grid coordinates.
Reasoned route. Begin with “For flex-* and grid-* reading-flow values, the order property is taken into account.” Apply this procedure: Record order values alongside layout positions. For the science investigation archive, introduce one controlled variation that exposes debugging focus only from DOM and grid coordinates. An item with a changed order can move within the derived reading sequence. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “The order property participates in derived flows” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “For flex-* and grid-* reading-flow values, the order property is taken into account.” should remain invariant and what observation would expose debugging focus only from DOM and grid coordinates.
Reasoned route. Begin with “For flex-* and grid-* reading-flow values, the order property is taken into account.” Apply this procedure: Record order values alongside layout positions. For the revision-note builder, introduce one controlled variation that exposes debugging focus only from DOM and grid coordinates. An item with a changed order can move within the derived reading sequence. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals debugging focus only from DOM and grid coordinates.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Record order values alongside layout positions.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “The order property participates in derived flows”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests For flex-* and grid-* reading-flow values, the order property is taken into account.?”, and “Can you make a smaller example of debugging focus only from DOM and grid coordinates?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Compare all-zero order values with one promoted item. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The promoted item can move earlier under the relevant derived flow. The final output alone earns only partial credit. A strong answer connects it to “For flex-* and grid-* reading-flow values, the order property is taken into account.”, shows the relevant intermediate evidence and states why debugging focus only from DOM and grid coordinates would lead to a different conclusion.
Decision and transfer
Avoid scattered order overrides that nobody can audit. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “The order property participates in derived flows” means the learner can predict the ordinary case, recognise debugging focus only from DOM and grid coordinates, diagnose the earliest mistaken assumption, recover with “Record order values alongside layout positions.” and defend this decision: Avoid scattered order overrides that nobody can audit. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first. That is the invariant to preserve when names, data or surrounding project details change.
It offers a local override without changing layout. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is using positive tabindex to force a similar sequence. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.panel{reading-flow:source-order}
.panel>.priority{reading-order:-1}Explained result. A child at -1 precedes default group 0 siblings. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace integer group then reading-flow tie-break. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “reading-order assigns ordinal groups”, separate contract from coincidence. The contract is “The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Assign the smallest necessary integer changes and leave visual focus cues intact.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “reading-order assigns ordinal groups” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first.” should remain invariant and what observation would expose using positive tabindex to force a similar sequence.
Reasoned route. Begin with “The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first.” Apply this procedure: Assign the smallest necessary integer changes and leave visual focus cues intact. For the homework evidence folder, introduce one controlled variation that exposes using positive tabindex to force a similar sequence. A child at -1 precedes default group 0 siblings. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “reading-order assigns ordinal groups” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first.” should remain invariant and what observation would expose using positive tabindex to force a similar sequence.
Reasoned route. Begin with “The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first.” Apply this procedure: Assign the smallest necessary integer changes and leave visual focus cues intact. For the CCA media catalogue, introduce one controlled variation that exposes using positive tabindex to force a similar sequence. A child at -1 precedes default group 0 siblings. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “reading-order assigns ordinal groups” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first.” should remain invariant and what observation would expose using positive tabindex to force a similar sequence.
Reasoned route. Begin with “The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first.” Apply this procedure: Assign the smallest necessary integer changes and leave visual focus cues intact. For the science investigation archive, introduce one controlled variation that exposes using positive tabindex to force a similar sequence. A child at -1 precedes default group 0 siblings. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “reading-order assigns ordinal groups” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first.” should remain invariant and what observation would expose using positive tabindex to force a similar sequence.
Reasoned route. Begin with “The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first.” Apply this procedure: Assign the smallest necessary integer changes and leave visual focus cues intact. For the revision-note builder, introduce one controlled variation that exposes using positive tabindex to force a similar sequence. A child at -1 precedes default group 0 siblings. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals using positive tabindex to force a similar sequence.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Assign the smallest necessary integer changes and leave visual focus cues intact.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “reading-order assigns ordinal groups”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first.?”, and “Can you make a smaller example of using positive tabindex to force a similar sequence?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Set values -1, 0 and 2 on direct siblings. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. They are visited from lower to higher groups. The final output alone earns only partial credit. A strong answer connects it to “The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first.”, shows the relevant intermediate evidence and states why using positive tabindex to force a similar sequence would lead to a different conclusion.
Decision and transfer
Prefer reading-order over positive tabindex when this CSS model is supported and appropriate. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “reading-order assigns ordinal groups” means the learner can predict the ordinary case, recognise using positive tabindex to force a similar sequence, diagnose the earliest mistaken assumption, recover with “Assign the smallest necessary integer changes and leave visual focus cues intact.” and defend this decision: Prefer reading-order over positive tabindex when this CSS model is supported and appropriate. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
CHAPTER 15 OF 20 · Diagnose and repair
15. Ties return to the parent reading-flow rule
When two items have equivalent reading-order, the parent reading-flow determines their tie order. That is the invariant to preserve when names, data or surrounding project details change.
An integer override does not erase the base sequence. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is assigning every child zero and expecting a custom order. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
.grid{reading-flow:grid-rows}
.grid>*{reading-order:0}Explained result. Equal-group items follow DOM, flex or grid rule selected on the container. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace group equality then row traversal. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “Ties return to the parent reading-flow rule”, separate contract from coincidence. The contract is “When two items have equivalent reading-order, the parent reading-flow determines their tie order.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Test tie groups with the parent value visible in the fixture.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “Ties return to the parent reading-flow rule” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “When two items have equivalent reading-order, the parent reading-flow determines their tie order.” should remain invariant and what observation would expose assigning every child zero and expecting a custom order.
Reasoned route. Begin with “When two items have equivalent reading-order, the parent reading-flow determines their tie order.” Apply this procedure: Test tie groups with the parent value visible in the fixture. For the homework evidence folder, introduce one controlled variation that exposes assigning every child zero and expecting a custom order. Equal-group items follow DOM, flex or grid rule selected on the container. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “Ties return to the parent reading-flow rule” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “When two items have equivalent reading-order, the parent reading-flow determines their tie order.” should remain invariant and what observation would expose assigning every child zero and expecting a custom order.
Reasoned route. Begin with “When two items have equivalent reading-order, the parent reading-flow determines their tie order.” Apply this procedure: Test tie groups with the parent value visible in the fixture. For the CCA media catalogue, introduce one controlled variation that exposes assigning every child zero and expecting a custom order. Equal-group items follow DOM, flex or grid rule selected on the container. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “Ties return to the parent reading-flow rule” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “When two items have equivalent reading-order, the parent reading-flow determines their tie order.” should remain invariant and what observation would expose assigning every child zero and expecting a custom order.
Reasoned route. Begin with “When two items have equivalent reading-order, the parent reading-flow determines their tie order.” Apply this procedure: Test tie groups with the parent value visible in the fixture. For the science investigation archive, introduce one controlled variation that exposes assigning every child zero and expecting a custom order. Equal-group items follow DOM, flex or grid rule selected on the container. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “Ties return to the parent reading-flow rule” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “When two items have equivalent reading-order, the parent reading-flow determines their tie order.” should remain invariant and what observation would expose assigning every child zero and expecting a custom order.
Reasoned route. Begin with “When two items have equivalent reading-order, the parent reading-flow determines their tie order.” Apply this procedure: Test tie groups with the parent value visible in the fixture. For the revision-note builder, introduce one controlled variation that exposes assigning every child zero and expecting a custom order. Equal-group items follow DOM, flex or grid rule selected on the container. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals assigning every child zero and expecting a custom order.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Test tie groups with the parent value visible in the fixture.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “Ties return to the parent reading-flow rule”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests When two items have equivalent reading-order, the parent reading-flow determines their tie order.?”, and “Can you make a smaller example of assigning every child zero and expecting a custom order?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Give two items the same override in different grid rows. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The parent grid-rows rule decides their relative visit. The final output alone earns only partial credit. A strong answer connects it to “When two items have equivalent reading-order, the parent reading-flow determines their tie order.”, shows the relevant intermediate evidence and states why assigning every child zero and expecting a custom order would lead to a different conclusion.
Decision and transfer
Keep tie behaviour predictable by limiting overrides. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “Ties return to the parent reading-flow rule” means the learner can predict the ordinary case, recognise assigning every child zero and expecting a custom order, diagnose the earliest mistaken assumption, recover with “Test tie groups with the parent value visible in the fixture.” and defend this decision: Keep tie behaviour predictable by limiting overrides. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
CHAPTER 16 OF 20 · Diagnose and repair
16. Responsive layouts are the central use case
reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline. That is the invariant to preserve when names, data or surrounding project details change.
One DOM can have multiple legitimate visual presentations. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is hard-coding one reading override that fits desktop and harms mobile. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
@media(min-width:60rem){.cards{reading-flow:grid-rows}}Explained result. Mobile can retain logical DOM order while a desktop grid receives a matching derived flow. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace source sequence and each breakpoint’s visual sequence. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “Responsive layouts are the central use case”, separate contract from coincidence. The contract is “reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Start with the most fundamental source order, then apply component-specific reading-flow inside layout breakpoints only when needed.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “Responsive layouts are the central use case” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline.” should remain invariant and what observation would expose hard-coding one reading override that fits desktop and harms mobile.
Reasoned route. Begin with “reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline.” Apply this procedure: Start with the most fundamental source order, then apply component-specific reading-flow inside layout breakpoints only when needed. For the homework evidence folder, introduce one controlled variation that exposes hard-coding one reading override that fits desktop and harms mobile. Mobile can retain logical DOM order while a desktop grid receives a matching derived flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “Responsive layouts are the central use case” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline.” should remain invariant and what observation would expose hard-coding one reading override that fits desktop and harms mobile.
Reasoned route. Begin with “reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline.” Apply this procedure: Start with the most fundamental source order, then apply component-specific reading-flow inside layout breakpoints only when needed. For the CCA media catalogue, introduce one controlled variation that exposes hard-coding one reading override that fits desktop and harms mobile. Mobile can retain logical DOM order while a desktop grid receives a matching derived flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “Responsive layouts are the central use case” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline.” should remain invariant and what observation would expose hard-coding one reading override that fits desktop and harms mobile.
Reasoned route. Begin with “reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline.” Apply this procedure: Start with the most fundamental source order, then apply component-specific reading-flow inside layout breakpoints only when needed. For the science investigation archive, introduce one controlled variation that exposes hard-coding one reading override that fits desktop and harms mobile. Mobile can retain logical DOM order while a desktop grid receives a matching derived flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “Responsive layouts are the central use case” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline.” should remain invariant and what observation would expose hard-coding one reading override that fits desktop and harms mobile.
Reasoned route. Begin with “reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline.” Apply this procedure: Start with the most fundamental source order, then apply component-specific reading-flow inside layout breakpoints only when needed. For the revision-note builder, introduce one controlled variation that exposes hard-coding one reading override that fits desktop and harms mobile. Mobile can retain logical DOM order while a desktop grid receives a matching derived flow. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals hard-coding one reading override that fits desktop and harms mobile.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Start with the most fundamental source order, then apply component-specific reading-flow inside layout breakpoints only when needed.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “Responsive layouts are the central use case”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline.?”, and “Can you make a smaller example of hard-coding one reading override that fits desktop and harms mobile?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Design a mobile list and desktop dashboard from one DOM. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The source remains sensible without CSS; desktop may opt into a visual-derived sequence. The final output alone earns only partial credit. A strong answer connects it to “reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline.”, shows the relevant intermediate evidence and states why hard-coding one reading override that fits desktop and harms mobile would lead to a different conclusion.
Decision and transfer
Test every active breakpoint, not only design mock-ups. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “Responsive layouts are the central use case” means the learner can predict the ordinary case, recognise hard-coding one reading override that fits desktop and harms mobile, diagnose the earliest mistaken assumption, recover with “Start with the most fundamental source order, then apply component-specific reading-flow inside layout breakpoints only when needed.” and defend this decision: Test every active breakpoint, not only design mock-ups. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
Each component or hierarchical level can have different ordering requirements. That is the invariant to preserve when names, data or surrounding project details change.
A page-wide declaration can flatten independent structures into a confusing sequence. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is setting reading-flow on a giant wrapper because several cards are misordered. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
main{reading-flow:source-order}
.card-grid{reading-flow:grid-rows}Explained result. Cards, menus and subgrids can preserve their own internal source logic. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace outer siblings and inner siblings separately. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “Nested components need local reasoning”, separate contract from coincidence. The contract is “Each component or hierarchical level can have different ordering requirements.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Apply it at the parent whose children form one coherent navigation unit.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “Nested components need local reasoning” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “Each component or hierarchical level can have different ordering requirements.” should remain invariant and what observation would expose setting reading-flow on a giant wrapper because several cards are misordered.
Reasoned route. Begin with “Each component or hierarchical level can have different ordering requirements.” Apply this procedure: Apply it at the parent whose children form one coherent navigation unit. For the homework evidence folder, introduce one controlled variation that exposes setting reading-flow on a giant wrapper because several cards are misordered. Cards, menus and subgrids can preserve their own internal source logic. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “Nested components need local reasoning” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “Each component or hierarchical level can have different ordering requirements.” should remain invariant and what observation would expose setting reading-flow on a giant wrapper because several cards are misordered.
Reasoned route. Begin with “Each component or hierarchical level can have different ordering requirements.” Apply this procedure: Apply it at the parent whose children form one coherent navigation unit. For the CCA media catalogue, introduce one controlled variation that exposes setting reading-flow on a giant wrapper because several cards are misordered. Cards, menus and subgrids can preserve their own internal source logic. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “Nested components need local reasoning” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “Each component or hierarchical level can have different ordering requirements.” should remain invariant and what observation would expose setting reading-flow on a giant wrapper because several cards are misordered.
Reasoned route. Begin with “Each component or hierarchical level can have different ordering requirements.” Apply this procedure: Apply it at the parent whose children form one coherent navigation unit. For the science investigation archive, introduce one controlled variation that exposes setting reading-flow on a giant wrapper because several cards are misordered. Cards, menus and subgrids can preserve their own internal source logic. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “Nested components need local reasoning” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “Each component or hierarchical level can have different ordering requirements.” should remain invariant and what observation would expose setting reading-flow on a giant wrapper because several cards are misordered.
Reasoned route. Begin with “Each component or hierarchical level can have different ordering requirements.” Apply this procedure: Apply it at the parent whose children form one coherent navigation unit. For the revision-note builder, introduce one controlled variation that exposes setting reading-flow on a giant wrapper because several cards are misordered. Cards, menus and subgrids can preserve their own internal source logic. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals setting reading-flow on a giant wrapper because several cards are misordered.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Apply it at the parent whose children form one coherent navigation unit.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “Nested components need local reasoning”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests Each component or hierarchical level can have different ordering requirements.?”, and “Can you make a smaller example of setting reading-flow on a giant wrapper because several cards are misordered?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Draw a page with a menu and nested card grid. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The menu and cards should not borrow each other’s ordering rule. The final output alone earns only partial credit. A strong answer connects it to “Each component or hierarchical level can have different ordering requirements.”, shows the relevant intermediate evidence and states why setting reading-flow on a giant wrapper because several cards are misordered would lead to a different conclusion.
Decision and transfer
Scope and document every non-normal reading flow. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “Nested components need local reasoning” means the learner can predict the ordinary case, recognise setting reading-flow on a giant wrapper because several cards are misordered, diagnose the earliest mistaken assumption, recover with “Apply it at the parent whose children form one coherent navigation unit.” and defend this decision: Scope and document every non-normal reading flow. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
CHAPTER 18 OF 20 · Transfer with judgment
18. Unsupported browsers fall back to source order behaviour
Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback. That is the invariant to preserve when names, data or surrounding project details change.
Progressive enhancement works only when the baseline is usable. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is shipping a visually scrambled DOM and relying on universal support. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
console.log(CSS.supports('reading-flow: grid-rows'))Explained result. Without the feature, the document should still make sense in source order. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace support result before interpreting focus behaviour. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “Unsupported browsers fall back to source order behaviour”, separate contract from coincidence. The contract is “Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Use CSS.supports for diagnostics, consult current compatibility data and test an unsupported environment.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “Unsupported browsers fall back to source order behaviour” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback.” should remain invariant and what observation would expose shipping a visually scrambled DOM and relying on universal support.
Reasoned route. Begin with “Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback.” Apply this procedure: Use CSS.supports for diagnostics, consult current compatibility data and test an unsupported environment. For the homework evidence folder, introduce one controlled variation that exposes shipping a visually scrambled DOM and relying on universal support. Without the feature, the document should still make sense in source order. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “Unsupported browsers fall back to source order behaviour” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback.” should remain invariant and what observation would expose shipping a visually scrambled DOM and relying on universal support.
Reasoned route. Begin with “Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback.” Apply this procedure: Use CSS.supports for diagnostics, consult current compatibility data and test an unsupported environment. For the CCA media catalogue, introduce one controlled variation that exposes shipping a visually scrambled DOM and relying on universal support. Without the feature, the document should still make sense in source order. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “Unsupported browsers fall back to source order behaviour” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback.” should remain invariant and what observation would expose shipping a visually scrambled DOM and relying on universal support.
Reasoned route. Begin with “Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback.” Apply this procedure: Use CSS.supports for diagnostics, consult current compatibility data and test an unsupported environment. For the science investigation archive, introduce one controlled variation that exposes shipping a visually scrambled DOM and relying on universal support. Without the feature, the document should still make sense in source order. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “Unsupported browsers fall back to source order behaviour” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback.” should remain invariant and what observation would expose shipping a visually scrambled DOM and relying on universal support.
Reasoned route. Begin with “Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback.” Apply this procedure: Use CSS.supports for diagnostics, consult current compatibility data and test an unsupported environment. For the revision-note builder, introduce one controlled variation that exposes shipping a visually scrambled DOM and relying on universal support. Without the feature, the document should still make sense in source order. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals shipping a visually scrambled DOM and relying on universal support.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Use CSS.supports for diagnostics, consult current compatibility data and test an unsupported environment.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “Unsupported browsers fall back to source order behaviour”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback.?”, and “Can you make a smaller example of shipping a visually scrambled DOM and relying on universal support?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Disable the declaration and navigate the component. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. The fallback should remain logical even if it no longer follows the desktop picture. The final output alone earns only partial credit. A strong answer connects it to “Because reading-flow is a modern draft feature, support must be checked; a logical DOM remains the safe fallback.”, shows the relevant intermediate evidence and states why shipping a visually scrambled DOM and relying on universal support would lead to a different conclusion.
Decision and transfer
Never use the feature to excuse an incoherent DOM. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “Unsupported browsers fall back to source order behaviour” means the learner can predict the ordinary case, recognise shipping a visually scrambled DOM and relying on universal support, diagnose the earliest mistaken assumption, recover with “Use CSS.supports for diagnostics, consult current compatibility data and test an unsupported environment.” and defend this decision: Never use the feature to excuse an incoherent DOM. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
CHAPTER 19 OF 20 · Transfer with judgment
19. Testing needs keyboard, speech and visual evidence
A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout. That is the invariant to preserve when names, data or surrounding project details change.
No single automated rule proves the intended sequence. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is calling a DOM snapshot an accessibility test. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
// expected focus: search, results, filtersExplained result. Evidence should show matching linear order and stable visual placement. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace each Tab stop and spoken label against the plan. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “Testing needs keyboard, speech and visual evidence”, separate contract from coincidence. The contract is “A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Record the expected item sequence and exercise representative browsers and assistive technology.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “Testing needs keyboard, speech and visual evidence” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout.” should remain invariant and what observation would expose calling a DOM snapshot an accessibility test.
Reasoned route. Begin with “A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout.” Apply this procedure: Record the expected item sequence and exercise representative browsers and assistive technology. For the homework evidence folder, introduce one controlled variation that exposes calling a DOM snapshot an accessibility test. Evidence should show matching linear order and stable visual placement. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “Testing needs keyboard, speech and visual evidence” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout.” should remain invariant and what observation would expose calling a DOM snapshot an accessibility test.
Reasoned route. Begin with “A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout.” Apply this procedure: Record the expected item sequence and exercise representative browsers and assistive technology. For the CCA media catalogue, introduce one controlled variation that exposes calling a DOM snapshot an accessibility test. Evidence should show matching linear order and stable visual placement. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “Testing needs keyboard, speech and visual evidence” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout.” should remain invariant and what observation would expose calling a DOM snapshot an accessibility test.
Reasoned route. Begin with “A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout.” Apply this procedure: Record the expected item sequence and exercise representative browsers and assistive technology. For the science investigation archive, introduce one controlled variation that exposes calling a DOM snapshot an accessibility test. Evidence should show matching linear order and stable visual placement. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “Testing needs keyboard, speech and visual evidence” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout.” should remain invariant and what observation would expose calling a DOM snapshot an accessibility test.
Reasoned route. Begin with “A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout.” Apply this procedure: Record the expected item sequence and exercise representative browsers and assistive technology. For the revision-note builder, introduce one controlled variation that exposes calling a DOM snapshot an accessibility test. Evidence should show matching linear order and stable visual placement. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals calling a DOM snapshot an accessibility test.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Record the expected item sequence and exercise representative browsers and assistive technology.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “Testing needs keyboard, speech and visual evidence”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout.?”, and “Can you make a smaller example of calling a DOM snapshot an accessibility test?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Create a five-item checklist for one grid component. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. Include DOM, visual, focus, speech and fallback observations. The final output alone earns only partial credit. A strong answer connects it to “A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout.”, shows the relevant intermediate evidence and states why calling a DOM snapshot an accessibility test would lead to a different conclusion.
Decision and transfer
Treat specification conformance and user testing as complementary. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “Testing needs keyboard, speech and visual evidence” means the learner can predict the ordinary case, recognise calling a DOM snapshot an accessibility test, diagnose the earliest mistaken assumption, recover with “Record the expected item sequence and exercise representative browsers and assistive technology.” and defend this decision: Treat specification conformance and user testing as complementary. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
CHAPTER 20 OF 20 · Transfer with judgment
20. Choose source repair before an override
The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences. That is the invariant to preserve when names, data or surrounding project details change.
Semantic HTML remains useful without CSS and across tools. The useful question is not “Which line should I copy?” but “Which state, value or rendering decision does this operation control?” Answering that question prevents a correct-looking result from hiding a wrong mental model.
The most revealing near-miss is using CSS to conceal a fundamentally wrong DOM order. A learner should predict the result first, run the smallest safe case, label the observation and explain the earliest point where the prediction diverges. This turns an error into evidence rather than a verdict on ability.
Core worked example
// Prefer logical HTML order firstExplained result. The simplest durable solution may be a source change rather than another property. The explanation should identify the input, the governing rule, the observable outcome and one boundary that would change the conclusion. If any of those four parts is missing, reduce the example and trace it again.
Read the trace, not just the last line
Trace meaning without CSS before evaluating layout-specific alternatives. Write the trace as a sequence of labelled states. For CSS reading-flow, the decisive evidence may be an iterator close, a cached classification, a glyph-spacing decision or a repository object path; printing only the final Boolean or filename can hide the mechanism that produced it.
For “Choose source repair before an override”, separate contract from coincidence. The contract is “The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences.” and comes from the primary specification or manual. Coincidence is what happened on one machine, font, filesystem or repository. Record both, then use “Ask whether one order is universally correct; if yes, fix the DOM, otherwise consider a scoped responsive reading flow.” to decide whether another observation challenges the model or merely reflects the environment.
Four purposeful transfer cases
Case 1: homework evidence folder. Model “Choose source repair before an override” with subject folders, draft answers and a reviewed copy. Before touching a tool, state which part of the case corresponds to the input, why “The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences.” should remain invariant and what observation would expose using CSS to conceal a fundamentally wrong DOM order.
Reasoned route. Begin with “The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences.” Apply this procedure: Ask whether one order is universally correct; if yes, fix the DOM, otherwise consider a scoped responsive reading flow. For the homework evidence folder, introduce one controlled variation that exposes using CSS to conceal a fundamentally wrong DOM order. The simplest durable solution may be a source change rather than another property. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 2: CCA media catalogue. Contrast “Choose source repair before an override” with event folders, selected images and caption notes. Before touching a tool, state which part of the case corresponds to the input, why “The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences.” should remain invariant and what observation would expose using CSS to conceal a fundamentally wrong DOM order.
Reasoned route. Begin with “The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences.” Apply this procedure: Ask whether one order is universally correct; if yes, fix the DOM, otherwise consider a scoped responsive reading flow. For the CCA media catalogue, introduce one controlled variation that exposes using CSS to conceal a fundamentally wrong DOM order. The simplest durable solution may be a source change rather than another property. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 3: science investigation archive. Stress-test “Choose source repair before an override” with raw readings, cleaned tables and chart exports. Before touching a tool, state which part of the case corresponds to the input, why “The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences.” should remain invariant and what observation would expose using CSS to conceal a fundamentally wrong DOM order.
Reasoned route. Begin with “The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences.” Apply this procedure: Ask whether one order is universally correct; if yes, fix the DOM, otherwise consider a scoped responsive reading flow. For the science investigation archive, introduce one controlled variation that exposes using CSS to conceal a fundamentally wrong DOM order. The simplest durable solution may be a source change rather than another property. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Case 4: revision-note builder. Explain “Choose source repair before an override” with topic notes, worked examples and a generated index. Before touching a tool, state which part of the case corresponds to the input, why “The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences.” should remain invariant and what observation would expose using CSS to conceal a fundamentally wrong DOM order.
Reasoned route. Begin with “The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences.” Apply this procedure: Ask whether one order is universally correct; if yes, fix the DOM, otherwise consider a scoped responsive reading flow. For the revision-note builder, introduce one controlled variation that exposes using CSS to conceal a fundamentally wrong DOM order. The simplest durable solution may be a source change rather than another property. A complete answer explains why the near-miss fails, names the evidence that distinguishes it from the corrected case and transfers the rule without relying on the original variable names.
Diagnostic route
- Model check: draw or list the exact values, objects, paths, characters or repository states before the operation.
- Boundary check: construct the smallest safe input that reveals using CSS to conceal a fundamentally wrong DOM order.
- Evidence check: distinguish a displayed result from ownership, caching, consumption, font behaviour or object type.
- Repair check: Ask whether one order is universally correct; if yes, fix the DOM, otherwise consider a scoped responsive reading flow.
- Transfer check: repeat the rule in a second context and name what remains unchanged.
A parent does not need to memorise CSS reading-flow to support “Choose source repair before an override”. Useful prompts are: “What did you expect?”, “Which state changed first?”, “What evidence tests The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences.?”, and “Can you make a smaller example of using CSS to conceal a fundamentally wrong DOM order?” These questions keep ownership with the learner while making the reasoning visible.
Practice with an explained answer
Task. Decide for a form, dashboard and decorative card montage. Write the prediction before running anything. Include one ordinary case and one boundary case, then explain the difference in two causal sentences.
Answer route. Forms usually need strong source order; flexible dashboards may justify component-specific flow. The final output alone earns only partial credit. A strong answer connects it to “The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences.”, shows the relevant intermediate evidence and states why using CSS to conceal a fundamentally wrong DOM order would lead to a different conclusion.
Decision and transfer
Use overrides only when multiple layouts carry the same coherent meaning. Prefer the choice whose semantics and failure modes are easiest to explain for the actual job. Shorter syntax is useful only when it preserves that clarity.
Mastery of “Choose source repair before an override” means the learner can predict the ordinary case, recognise using CSS to conceal a fundamentally wrong DOM order, diagnose the earliest mistaken assumption, recover with “Ask whether one order is universally correct; if yes, fix the DOM, otherwise consider a scoped responsive reading flow.” and defend this decision: Use overrides only when multiple layouts carry the same coherent meaning. Once that causal chain is stable, continue to the next chapter rather than adding repetitions of the same surface exercise.
Previous section · Contents · Next section
Parent guide: choose the next useful step
For CSS reading-flow, start with evidence rather than a label such as careless. Ask for one prediction and one trace. If the first transition is wrong, rebuild the model. If the model is sound but reference use is weak, practise finding the governing contract. If routine cases work but boundaries fail, vary one condition. If explanations transfer, move to a small project.
Punggol family routines are often busy, so use one complete CSS reading-flow prediction–observation–explanation cycle while attention is good. Ten to twenty focused minutes can be enough. Keep a four-line record: concept, prediction, observed difference and next test. Stop when fatigue replaces reasoning.
Use disposable fixtures, temporary directories and test repositories. Backups remain necessary. The activities in this guide are proposed home-learning exercises, not advertised lesson times, branch facilities, school affiliations or outcome guarantees.
Capstone practice with explained routes
1. Draw three sequences
Map DOM, visual and focus order for one three-card layout. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: Source order, visual layout order and linear reading or navigation order are distinct concepts. Apply: Write the DOM sequence, visual sequence and expected focus sequence before adding CSS. Verify: The three lists expose exactly which relationship needs repair. Then connect the result to the unchanged canvas in Chapter 5. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement.
2. Compare every value
Build a decision table for normal, source-order, flex and grid values. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: The initial reading-flow value is normal, which follows the order of elements in the DOM. Apply: Remove reading-flow and test tab order against source markup. Verify: The default linear sequence remains DOM order even if boxes are visually rearranged. Then connect the result to the matching-container rule in Chapter 12. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement.
3. Test a reversed flex row
Predict flex-visual and flex-flow under one writing mode. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: On a flex container, flex-visual follows the visual reading order while taking writing mode into account. Apply: Record writing-mode, direction, flex direction and actual placement before predicting. Verify: The reading sequence follows the visual perception order defined for that context. Then connect the result to the order-property interaction in Chapter 13. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement.
4. Traverse a named grid
Compare row, column and order-modified sequences. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: On a grid container, grid-rows follows the visual order of grid items by row, taking writing mode into account. Apply: Map each item to a visual row and then traverse rows in the relevant writing mode. Verify: The reading sequence follows row-wise visual placement. Then connect the result to the tie rule in Chapter 15. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement.
5. Apply one child override
Move one direct child to reading group -1 without changing layout. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: The reading-order property takes an integer on direct children of a reading flow container; lower groups are visited first. Apply: Assign the smallest necessary integer changes and leave visual focus cues intact. Verify: A child at -1 precedes default group 0 siblings. Then connect the result to the source-order container in Chapter 6. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement.
6. Design two breakpoints
Keep logical mobile source order and justify a desktop reading flow. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: reading-flow can coordinate linear order with different layouts selected by media queries while a sensible source order remains the baseline. Apply: Start with the most fundamental source order, then apply component-specific reading-flow inside layout breakpoints only when needed. Verify: Mobile can retain logical DOM order while a desktop grid receives a matching derived flow. Then connect the result to the fallback requirement in Chapter 18. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement.
7. Run an accessibility checklist
Record keyboard, speech, focus and visual evidence. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: A complete check covers sequential keyboard navigation, accessibility-tree or screen-reader output, visible focus and unchanged layout. Apply: Record the expected item sequence and exercise representative browsers and assistive technology. Verify: Evidence should show matching linear order and stable visual placement. Then connect the result to the property purpose in Chapter 4. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement.
8. Defend source repair
Choose DOM reordering or CSS flow for three components. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: The source document should express the underlying logical order; reading-flow and reading-order are for layouts with legitimate alternative sequences. Apply: Ask whether one order is universally correct; if yes, fix the DOM, otherwise consider a scoped responsive reading flow. Verify: The simplest durable solution may be a source change rather than another property. Then connect the result to the nested scope in Chapter 17. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement.
Frequently asked questions
How long should a practice session be?
Use one complete CSS reading-flow prediction–observation–explanation cycle while attention remains good. Ten to twenty focused minutes can be enough.
Should every option or method be memorised?
No. For CSS reading-flow, memorise governing distinctions and practise retrieving the primary reference. Understanding means predicting and explaining, not reciting a parameter list.
What if the result is correct but the explanation is weak?
Treat it as partial success. Ask for a trace and change one boundary. A reliable model survives controlled variation.
Is the shortest solution the best?
Not automatically. Prefer the solution whose semantics, failure modes and maintenance cost are easiest to justify for the actual project.
When should the official reference be used?
Use it whenever CSS reading-flow syntax, supported values, version behaviour or implementation boundaries matter. The primary source settles the current contract.
How can a parent help without technical expertise?
Ask what was predicted, where the first difference appeared, what evidence matters and which smaller example could isolate it.
How do we test transfer?
Change the context, vocabulary and one boundary. Require the learner to identify the invariant before using a tool.
What should be saved after practice?
Keep the corrected rule, one trace, one boundary case and the next question. Avoid storing pages of unexplained output.
Can these exercises replace backups?
No. Use disposable examples and proper backups. Learning should not endanger schoolwork, repositories or personal data.
What counts as mastery?
The learner can predict, verify, diagnose, recover and justify a choice across more than one context, while knowing when to consult the current reference.

