When a learner can reproduce a familiar example but a small variation causes confusion, the problem is usually an incomplete model rather than a lack of effort. The fastest useful response is to expose the hidden state and test one boundary at a time.
CSS text-wrap: balance selects wrapping that tries to distribute the remaining inline space more evenly across a block’s line boxes when that improves on ordinary wrapping. Mastery means recognising that text-wrap is a shorthand for wrap mode and wrap style, that balancing chooses among existing soft wrap opportunities rather than inventing breaks, that width, fonts, language, hyphenation and inline content all change the candidate layout, and that user agents may fall back to ordinary wrapping for blocks with more than ten lines. This guide begins with that mechanism, then develops it through worked traces, deliberate mistakes, explained practice and transfer decisions.
The aim is independent reasoning. A learner should be able to predict behaviour, locate the earliest wrong assumption, use a safe diagnostic procedure and defend a design choice in a new project.
Punggol families can use the guide in short sessions around homework, CCAs and rest. The activities are proposed learning exercises, not claims about a physical branch, timetable, class size, fee, school relationship or guaranteed result.
Use disposable data and repositories, preserve backups, and check version-sensitive details against the official 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. Use the complete index for a systematic course.
Build the model
Chapters 1-4 . Begin here, then continue after the learner can predict, verify and explain.
Use the core tools
Chapters 5-8 . Begin here, then continue after the learner can predict, verify and explain.
Handle boundaries
Chapters 9-12 . Begin here, then continue after the learner can predict, verify and explain.
Debug and verify
Chapters 13-16 . Begin here, then continue after the learner can predict, verify and explain.
Transfer with judgment
Chapters 17-20 . Begin here, then continue after the learner can predict, verify and explain.
Open the full chapter index . Jump to capstone practice . Use the How Studying Works hub . Read the official documentation
Complete chapter index
Chapters 1-4 . Build the model
Chapters 5-8 . Use the core tools
Chapters 9-12 . Handle boundaries
Chapters 13-16 . Debug and verify
The text-wrap shorthand sets text-wrap-mode and text-wrap-style; the single value balance selects the balance style while omitted mode uses its initial wrap value. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is calling balance a completely independent property with no mode interaction. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for text-wrap is a shorthand, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the text-wrap is a shorthand chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on calling balance a completely independent property with no mode interaction. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.title { text-wrap: balance; }Explained result. The declaration requests wrapping and the balance selection style for the title. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: study-card heading. Predict the rule using a short title wraps across two lines on a narrow phone. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The text-wrap shorthand sets text-wrap-mode and text-wrap-style; the single value balance selects the balance style while omitted mode uses its initial wrap value.” Apply this procedure: State the contract for text-wrap is a shorthand, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The declaration requests wrapping and the balance selection style for the title. For the study-card heading, add one near-miss that exposes calling balance a completely independent property with no mode interaction. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: project banner. Contrast the rule using one announcement title adapts from laptop to mobile width. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The text-wrap shorthand sets text-wrap-mode and text-wrap-style; the single value balance selects the balance style while omitted mode uses its initial wrap value.” Apply this procedure: State the contract for text-wrap is a shorthand, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The declaration requests wrapping and the balance selection style for the title. For the project banner, add one near-miss that exposes calling balance a completely independent property with no mode interaction. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: revision dashboard. Stress-test the rule using card headings vary in length but keep readable rhythm. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The text-wrap shorthand sets text-wrap-mode and text-wrap-style; the single value balance selects the balance style while omitted mode uses its initial wrap value.” Apply this procedure: State the contract for text-wrap is a shorthand, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The declaration requests wrapping and the balance selection style for the title. For the revision dashboard, add one near-miss that exposes calling balance a completely independent property with no mode interaction. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: CCA poster. Explain the rule using a bilingual heading tests language and font coverage. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The text-wrap shorthand sets text-wrap-mode and text-wrap-style; the single value balance selects the balance style while omitted mode uses its initial wrap value.” Apply this procedure: State the contract for text-wrap is a shorthand, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The declaration requests wrapping and the balance selection style for the title. For the CCA poster, add one near-miss that exposes calling balance a completely independent property with no mode interaction. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers calling balance a completely independent property with no mode interaction.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for text-wrap is a shorthand, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from text-wrap is a shorthand?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing calling balance a completely independent property with no mode interaction be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny science caption with a compact label competes with a fixed icon for line space. Include one ordinary case, one boundary and one deliberate failure caused by calling balance a completely independent property with no mode interaction. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: The text-wrap shorthand sets text-wrap-mode and text-wrap-style; the single value balance selects the balance style while omitted mode uses its initial wrap value. It shows a trace, not only a final value. The ordinary case should demonstrate “The declaration requests wrapping and the balance selection style for the title.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for text-wrap is a shorthand, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For text-wrap is a shorthand, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
text-wrap-style: balance expresses the style decision directly while leaving the separately specified wrapping mode intact. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is using the longhand and later resetting it accidentally through text-wrap. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for The longhand is text-wrap-style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the The longhand is text-wrap-style chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on using the longhand and later resetting it accidentally through text-wrap. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.title { text-wrap-mode:wrap; text-wrap-style:balance; }Explained result. The two declarations make mode and style explicit, with the same core intent as the shorthand. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: revision dashboard. Contrast the rule using card headings vary in length but keep readable rhythm. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “text-wrap-style: balance expresses the style decision directly while leaving the separately specified wrapping mode intact.” Apply this procedure: State the contract for The longhand is text-wrap-style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The two declarations make mode and style explicit, with the same core intent as the shorthand. For the revision dashboard, add one near-miss that exposes using the longhand and later resetting it accidentally through text-wrap. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: CCA poster. Stress-test the rule using a bilingual heading tests language and font coverage. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “text-wrap-style: balance expresses the style decision directly while leaving the separately specified wrapping mode intact.” Apply this procedure: State the contract for The longhand is text-wrap-style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The two declarations make mode and style explicit, with the same core intent as the shorthand. For the CCA poster, add one near-miss that exposes using the longhand and later resetting it accidentally through text-wrap. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: parent guide. Explain the rule using a section title contains an inline emphasis span. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “text-wrap-style: balance expresses the style decision directly while leaving the separately specified wrapping mode intact.” Apply this procedure: State the contract for The longhand is text-wrap-style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The two declarations make mode and style explicit, with the same core intent as the shorthand. For the parent guide, add one near-miss that exposes using the longhand and later resetting it accidentally through text-wrap. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: science caption. Transfer the rule using a compact label competes with a fixed icon for line space. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “text-wrap-style: balance expresses the style decision directly while leaving the separately specified wrapping mode intact.” Apply this procedure: State the contract for The longhand is text-wrap-style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The two declarations make mode and style explicit, with the same core intent as the shorthand. For the science caption, add one near-miss that exposes using the longhand and later resetting it accidentally through text-wrap. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers using the longhand and later resetting it accidentally through text-wrap.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for The longhand is text-wrap-style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from The longhand is text-wrap-style?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing using the longhand and later resetting it accidentally through text-wrap be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny responsive laboratory with container widths reveal where balancing helps or disappears. Include one ordinary case, one boundary and one deliberate failure caused by using the longhand and later resetting it accidentally through text-wrap. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: text-wrap-style: balance expresses the style decision directly while leaving the separately specified wrapping mode intact. It shows a trace, not only a final value. The ordinary case should demonstrate “The two declarations make mode and style explicit, with the same core intent as the shorthand.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for The longhand is text-wrap-style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For The longhand is text-wrap-style, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
The browser chooses among allowed soft wrap opportunities to reduce variation in remaining space across line boxes. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is expecting the property to stretch letters or justify every line. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Balance chooses line-break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Balance chooses line-break opportunities chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on expecting the property to stretch letters or justify every line. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
h2 { max-inline-size:24rem; text-wrap:balance; }Explained result. The browser changes where lines break; it does not become text-align: justify. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: parent guide. Stress-test the rule using a section title contains an inline emphasis span. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The browser chooses among allowed soft wrap opportunities to reduce variation in remaining space across line boxes.” Apply this procedure: State the contract for Balance chooses line-break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The browser changes where lines break; it does not become text-align: justify. For the parent guide, add one near-miss that exposes expecting the property to stretch letters or justify every line. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: science caption. Explain the rule using a compact label competes with a fixed icon for line space. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The browser chooses among allowed soft wrap opportunities to reduce variation in remaining space across line boxes.” Apply this procedure: State the contract for Balance chooses line-break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The browser changes where lines break; it does not become text-align: justify. For the science caption, add one near-miss that exposes expecting the property to stretch letters or justify every line. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: responsive laboratory. Transfer the rule using container widths reveal where balancing helps or disappears. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The browser chooses among allowed soft wrap opportunities to reduce variation in remaining space across line boxes.” Apply this procedure: State the contract for Balance chooses line-break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The browser changes where lines break; it does not become text-align: justify. For the responsive laboratory, add one near-miss that exposes expecting the property to stretch letters or justify every line. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: accessibility audit. Predict the rule using zoom, custom fonts and reflow test reading without forced breaks. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The browser chooses among allowed soft wrap opportunities to reduce variation in remaining space across line boxes.” Apply this procedure: State the contract for Balance chooses line-break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The browser changes where lines break; it does not become text-align: justify. For the accessibility audit, add one near-miss that exposes expecting the property to stretch letters or justify every line. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers expecting the property to stretch letters or justify every line.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Balance chooses line-break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Balance chooses line-break opportunities?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing expecting the property to stretch letters or justify every line be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny accessibility audit with zoom, custom fonts and reflow test reading without forced breaks. Include one ordinary case, one boundary and one deliberate failure caused by expecting the property to stretch letters or justify every line. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: The browser chooses among allowed soft wrap opportunities to reduce variation in remaining space across line boxes. It shows a trace, not only a final value. The ordinary case should demonstrate “The browser changes where lines break; it does not become text-align: justify.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Balance chooses line-break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Balance chooses line-break opportunities, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
Language rules and other line-breaking properties define soft wrap opportunities; balance prioritises among those opportunities. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is expecting a long unbreakable identifier to split without overflow rules. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for It cannot invent arbitrary word breaks, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the It cannot invent arbitrary word breaks chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on expecting a long unbreakable identifier to split without overflow rules. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.title { text-wrap:balance; overflow-wrap:anywhere; }Explained result. overflow-wrap can introduce emergency opportunities, while balance then participates in selecting among available choices. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: responsive laboratory. Explain the rule using container widths reveal where balancing helps or disappears. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Language rules and other line-breaking properties define soft wrap opportunities; balance prioritises among those opportunities.” Apply this procedure: State the contract for It cannot invent arbitrary word breaks, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: overflow-wrap can introduce emergency opportunities, while balance then participates in selecting among available choices. For the responsive laboratory, add one near-miss that exposes expecting a long unbreakable identifier to split without overflow rules. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: accessibility audit. Transfer the rule using zoom, custom fonts and reflow test reading without forced breaks. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Language rules and other line-breaking properties define soft wrap opportunities; balance prioritises among those opportunities.” Apply this procedure: State the contract for It cannot invent arbitrary word breaks, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: overflow-wrap can introduce emergency opportunities, while balance then participates in selecting among available choices. For the accessibility audit, add one near-miss that exposes expecting a long unbreakable identifier to split without overflow rules. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: study-card heading. Predict the rule using a short title wraps across two lines on a narrow phone. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Language rules and other line-breaking properties define soft wrap opportunities; balance prioritises among those opportunities.” Apply this procedure: State the contract for It cannot invent arbitrary word breaks, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: overflow-wrap can introduce emergency opportunities, while balance then participates in selecting among available choices. For the study-card heading, add one near-miss that exposes expecting a long unbreakable identifier to split without overflow rules. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: project banner. Contrast the rule using one announcement title adapts from laptop to mobile width. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Language rules and other line-breaking properties define soft wrap opportunities; balance prioritises among those opportunities.” Apply this procedure: State the contract for It cannot invent arbitrary word breaks, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: overflow-wrap can introduce emergency opportunities, while balance then participates in selecting among available choices. For the project banner, add one near-miss that exposes expecting a long unbreakable identifier to split without overflow rules. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers expecting a long unbreakable identifier to split without overflow rules.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for It cannot invent arbitrary word breaks, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from It cannot invent arbitrary word breaks?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing expecting a long unbreakable identifier to split without overflow rules be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny study-card heading with a short title wraps across two lines on a narrow phone. Include one ordinary case, one boundary and one deliberate failure caused by expecting a long unbreakable identifier to split without overflow rules. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: Language rules and other line-breaking properties define soft wrap opportunities; balance prioritises among those opportunities. It shows a trace, not only a final value. The ordinary case should demonstrate “overflow-wrap can introduce emergency opportunities, while balance then participates in selecting among available choices.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for It cannot invent arbitrary word breaks, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For It cannot invent arbitrary word breaks, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
Line composition depends on available inline size, so the same heading can balance differently across cards, sidebars and full-width layouts. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is copying one screenshot’s breaks as a universal outcome. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Container width changes the answer, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Container width changes the answer chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on copying one screenshot’s breaks as a universal outcome. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.card-title { inline-size:min(100%,22rem); text-wrap:balance; }Explained result. Resizing the container may change both candidate lines and the chosen balanced result. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: study-card heading. Transfer the rule using a short title wraps across two lines on a narrow phone. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Line composition depends on available inline size, so the same heading can balance differently across cards, sidebars and full-width layouts.” Apply this procedure: State the contract for Container width changes the answer, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Resizing the container may change both candidate lines and the chosen balanced result. For the study-card heading, add one near-miss that exposes copying one screenshot’s breaks as a universal outcome. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: project banner. Predict the rule using one announcement title adapts from laptop to mobile width. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Line composition depends on available inline size, so the same heading can balance differently across cards, sidebars and full-width layouts.” Apply this procedure: State the contract for Container width changes the answer, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Resizing the container may change both candidate lines and the chosen balanced result. For the project banner, add one near-miss that exposes copying one screenshot’s breaks as a universal outcome. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: revision dashboard. Contrast the rule using card headings vary in length but keep readable rhythm. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Line composition depends on available inline size, so the same heading can balance differently across cards, sidebars and full-width layouts.” Apply this procedure: State the contract for Container width changes the answer, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Resizing the container may change both candidate lines and the chosen balanced result. For the revision dashboard, add one near-miss that exposes copying one screenshot’s breaks as a universal outcome. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: CCA poster. Stress-test the rule using a bilingual heading tests language and font coverage. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Line composition depends on available inline size, so the same heading can balance differently across cards, sidebars and full-width layouts.” Apply this procedure: State the contract for Container width changes the answer, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Resizing the container may change both candidate lines and the chosen balanced result. For the CCA poster, add one near-miss that exposes copying one screenshot’s breaks as a universal outcome. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers copying one screenshot’s breaks as a universal outcome.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Container width changes the answer, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Container width changes the answer?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing copying one screenshot’s breaks as a universal outcome be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny project banner with one announcement title adapts from laptop to mobile width. Include one ordinary case, one boundary and one deliberate failure caused by copying one screenshot’s breaks as a universal outcome. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: Line composition depends on available inline size, so the same heading can balance differently across cards, sidebars and full-width layouts. It shows a trace, not only a final value. The ordinary case should demonstrate “Resizing the container may change both candidate lines and the chosen balanced result.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Container width changes the answer, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Container width changes the answer, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
Font family, fallback glyphs, weight, size and letter spacing alter text metrics and therefore the balancing calculation. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is approving a layout before the production web font loads. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Fonts change measured line space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Fonts change measured line space chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on approving a layout before the production web font loads. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.title { font:700 2rem/1.1 system-ui; text-wrap:balance; }Explained result. A font change may move words between lines even when the text and width remain identical. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: revision dashboard. Predict the rule using card headings vary in length but keep readable rhythm. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Font family, fallback glyphs, weight, size and letter spacing alter text metrics and therefore the balancing calculation.” Apply this procedure: State the contract for Fonts change measured line space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: A font change may move words between lines even when the text and width remain identical. For the revision dashboard, add one near-miss that exposes approving a layout before the production web font loads. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: CCA poster. Contrast the rule using a bilingual heading tests language and font coverage. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Font family, fallback glyphs, weight, size and letter spacing alter text metrics and therefore the balancing calculation.” Apply this procedure: State the contract for Fonts change measured line space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: A font change may move words between lines even when the text and width remain identical. For the CCA poster, add one near-miss that exposes approving a layout before the production web font loads. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: parent guide. Stress-test the rule using a section title contains an inline emphasis span. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Font family, fallback glyphs, weight, size and letter spacing alter text metrics and therefore the balancing calculation.” Apply this procedure: State the contract for Fonts change measured line space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: A font change may move words between lines even when the text and width remain identical. For the parent guide, add one near-miss that exposes approving a layout before the production web font loads. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: science caption. Explain the rule using a compact label competes with a fixed icon for line space. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Font family, fallback glyphs, weight, size and letter spacing alter text metrics and therefore the balancing calculation.” Apply this procedure: State the contract for Fonts change measured line space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: A font change may move words between lines even when the text and width remain identical. For the science caption, add one near-miss that exposes approving a layout before the production web font loads. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers approving a layout before the production web font loads.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Fonts change measured line space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Fonts change measured line space?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing approving a layout before the production web font loads be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny revision dashboard with card headings vary in length but keep readable rhythm. Include one ordinary case, one boundary and one deliberate failure caused by approving a layout before the production web font loads. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: Font family, fallback glyphs, weight, size and letter spacing alter text metrics and therefore the balancing calculation. It shows a trace, not only a final value. The ordinary case should demonstrate “A font change may move words between lines even when the text and width remain identical.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Fonts change measured line space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Fonts change measured line space, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
The content language and writing system influence allowed line breaks, so correct lang metadata is part of the typographic input. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is testing English and assuming identical behaviour for Chinese or mixed-script titles. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Language affects break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Language affects break opportunities chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on testing English and assuming identical behaviour for Chinese or mixed-script titles. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
<h2 lang="en-SG" class="title">Plan the next revision step</h2>Explained result. The browser combines language-aware line breaking with the requested balance style. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: parent guide. Contrast the rule using a section title contains an inline emphasis span. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The content language and writing system influence allowed line breaks, so correct lang metadata is part of the typographic input.” Apply this procedure: State the contract for Language affects break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The browser combines language-aware line breaking with the requested balance style. For the parent guide, add one near-miss that exposes testing English and assuming identical behaviour for Chinese or mixed-script titles. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: science caption. Stress-test the rule using a compact label competes with a fixed icon for line space. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The content language and writing system influence allowed line breaks, so correct lang metadata is part of the typographic input.” Apply this procedure: State the contract for Language affects break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The browser combines language-aware line breaking with the requested balance style. For the science caption, add one near-miss that exposes testing English and assuming identical behaviour for Chinese or mixed-script titles. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: responsive laboratory. Explain the rule using container widths reveal where balancing helps or disappears. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The content language and writing system influence allowed line breaks, so correct lang metadata is part of the typographic input.” Apply this procedure: State the contract for Language affects break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The browser combines language-aware line breaking with the requested balance style. For the responsive laboratory, add one near-miss that exposes testing English and assuming identical behaviour for Chinese or mixed-script titles. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: accessibility audit. Transfer the rule using zoom, custom fonts and reflow test reading without forced breaks. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The content language and writing system influence allowed line breaks, so correct lang metadata is part of the typographic input.” Apply this procedure: State the contract for Language affects break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The browser combines language-aware line breaking with the requested balance style. For the accessibility audit, add one near-miss that exposes testing English and assuming identical behaviour for Chinese or mixed-script titles. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers testing English and assuming identical behaviour for Chinese or mixed-script titles.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Language affects break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Language affects break opportunities?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing testing English and assuming identical behaviour for Chinese or mixed-script titles be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny CCA poster with a bilingual heading tests language and font coverage. Include one ordinary case, one boundary and one deliberate failure caused by testing English and assuming identical behaviour for Chinese or mixed-script titles. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: The content language and writing system influence allowed line breaks, so correct lang metadata is part of the typographic input. It shows a trace, not only a final value. The ordinary case should demonstrate “The browser combines language-aware line breaking with the requested balance style.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Language affects break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Language affects break opportunities, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
hyphens can add language-sensitive break opportunities, which can change the set of layouts balance evaluates. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is crediting balance for hyphens created by another property. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Hyphenation is a separate control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Hyphenation is a separate control chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on crediting balance for hyphens created by another property. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.title { text-wrap:balance; hyphens:auto; }Explained result. Automatic hyphenation and balancing cooperate, but each has a different contract. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: responsive laboratory. Stress-test the rule using container widths reveal where balancing helps or disappears. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “hyphens can add language-sensitive break opportunities, which can change the set of layouts balance evaluates.” Apply this procedure: State the contract for Hyphenation is a separate control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Automatic hyphenation and balancing cooperate, but each has a different contract. For the responsive laboratory, add one near-miss that exposes crediting balance for hyphens created by another property. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: accessibility audit. Explain the rule using zoom, custom fonts and reflow test reading without forced breaks. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “hyphens can add language-sensitive break opportunities, which can change the set of layouts balance evaluates.” Apply this procedure: State the contract for Hyphenation is a separate control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Automatic hyphenation and balancing cooperate, but each has a different contract. For the accessibility audit, add one near-miss that exposes crediting balance for hyphens created by another property. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: study-card heading. Transfer the rule using a short title wraps across two lines on a narrow phone. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “hyphens can add language-sensitive break opportunities, which can change the set of layouts balance evaluates.” Apply this procedure: State the contract for Hyphenation is a separate control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Automatic hyphenation and balancing cooperate, but each has a different contract. For the study-card heading, add one near-miss that exposes crediting balance for hyphens created by another property. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: project banner. Predict the rule using one announcement title adapts from laptop to mobile width. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “hyphens can add language-sensitive break opportunities, which can change the set of layouts balance evaluates.” Apply this procedure: State the contract for Hyphenation is a separate control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Automatic hyphenation and balancing cooperate, but each has a different contract. For the project banner, add one near-miss that exposes crediting balance for hyphens created by another property. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers crediting balance for hyphens created by another property.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Hyphenation is a separate control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Hyphenation is a separate control?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing crediting balance for hyphens created by another property be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny parent guide with a section title contains an inline emphasis span. Include one ordinary case, one boundary and one deliberate failure caused by crediting balance for hyphens created by another property. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: hyphens can add language-sensitive break opportunities, which can change the set of layouts balance evaluates. It shows a trace, not only a final value. The ordinary case should demonstrate “Automatic hyphenation and balancing cooperate, but each has a different contract.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Hyphenation is a separate control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Hyphenation is a separate control, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
Groups of lines separated by a forced line break are processed separately rather than balanced as one uninterrupted group. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is inserting br elements for one viewport and expecting fluid rebalancing everywhere. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Forced breaks divide balancing groups, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Forced breaks divide balancing groups chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on inserting br elements for one viewport and expecting fluid rebalancing everywhere. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
<h2 class="title">Learn the model<br>then test the boundary</h2>Explained result. Each side of the forced break forms its own group, reducing the browser’s freedom to rebalance across it. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: study-card heading. Explain the rule using a short title wraps across two lines on a narrow phone. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Groups of lines separated by a forced line break are processed separately rather than balanced as one uninterrupted group.” Apply this procedure: State the contract for Forced breaks divide balancing groups, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Each side of the forced break forms its own group, reducing the browser’s freedom to rebalance across it. For the study-card heading, add one near-miss that exposes inserting br elements for one viewport and expecting fluid rebalancing everywhere. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: project banner. Transfer the rule using one announcement title adapts from laptop to mobile width. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Groups of lines separated by a forced line break are processed separately rather than balanced as one uninterrupted group.” Apply this procedure: State the contract for Forced breaks divide balancing groups, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Each side of the forced break forms its own group, reducing the browser’s freedom to rebalance across it. For the project banner, add one near-miss that exposes inserting br elements for one viewport and expecting fluid rebalancing everywhere. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: revision dashboard. Predict the rule using card headings vary in length but keep readable rhythm. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Groups of lines separated by a forced line break are processed separately rather than balanced as one uninterrupted group.” Apply this procedure: State the contract for Forced breaks divide balancing groups, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Each side of the forced break forms its own group, reducing the browser’s freedom to rebalance across it. For the revision dashboard, add one near-miss that exposes inserting br elements for one viewport and expecting fluid rebalancing everywhere. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: CCA poster. Contrast the rule using a bilingual heading tests language and font coverage. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Groups of lines separated by a forced line break are processed separately rather than balanced as one uninterrupted group.” Apply this procedure: State the contract for Forced breaks divide balancing groups, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Each side of the forced break forms its own group, reducing the browser’s freedom to rebalance across it. For the CCA poster, add one near-miss that exposes inserting br elements for one viewport and expecting fluid rebalancing everywhere. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers inserting br elements for one viewport and expecting fluid rebalancing everywhere.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Forced breaks divide balancing groups, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Forced breaks divide balancing groups?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing inserting br elements for one viewport and expecting fluid rebalancing everywhere be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny science caption with a compact label competes with a fixed icon for line space. Include one ordinary case, one boundary and one deliberate failure caused by inserting br elements for one viewport and expecting fluid rebalancing everywhere. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: Groups of lines separated by a forced line break are processed separately rather than balanced as one uninterrupted group. It shows a trace, not only a final value. The ordinary case should demonstrate “Each side of the forced break forms its own group, reducing the browser’s freedom to rebalance across it.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Forced breaks divide balancing groups, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Forced breaks divide balancing groups, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
Inline icons, emphasis, badges and floats affect the remaining inline space that the algorithm considers. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is debugging the text alone while a badge changes every line box. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Inline content consumes space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Inline content consumes space chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on debugging the text alone while a badge changes every line box. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.title { text-wrap:balance; }
.title .badge { white-space:nowrap; }Explained result. The non-wrapping badge participates in layout and may change the selected text breaks. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: revision dashboard. Transfer the rule using card headings vary in length but keep readable rhythm. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Inline icons, emphasis, badges and floats affect the remaining inline space that the algorithm considers.” Apply this procedure: State the contract for Inline content consumes space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The non-wrapping badge participates in layout and may change the selected text breaks. For the revision dashboard, add one near-miss that exposes debugging the text alone while a badge changes every line box. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: CCA poster. Predict the rule using a bilingual heading tests language and font coverage. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Inline icons, emphasis, badges and floats affect the remaining inline space that the algorithm considers.” Apply this procedure: State the contract for Inline content consumes space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The non-wrapping badge participates in layout and may change the selected text breaks. For the CCA poster, add one near-miss that exposes debugging the text alone while a badge changes every line box. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: parent guide. Contrast the rule using a section title contains an inline emphasis span. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Inline icons, emphasis, badges and floats affect the remaining inline space that the algorithm considers.” Apply this procedure: State the contract for Inline content consumes space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The non-wrapping badge participates in layout and may change the selected text breaks. For the parent guide, add one near-miss that exposes debugging the text alone while a badge changes every line box. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: science caption. Stress-test the rule using a compact label competes with a fixed icon for line space. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Inline icons, emphasis, badges and floats affect the remaining inline space that the algorithm considers.” Apply this procedure: State the contract for Inline content consumes space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The non-wrapping badge participates in layout and may change the selected text breaks. For the science caption, add one near-miss that exposes debugging the text alone while a badge changes every line box. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers debugging the text alone while a badge changes every line box.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Inline content consumes space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Inline content consumes space?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing debugging the text alone while a badge changes every line box be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny responsive laboratory with container widths reveal where balancing helps or disappears. Include one ordinary case, one boundary and one deliberate failure caused by debugging the text alone while a badge changes every line box. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: Inline icons, emphasis, badges and floats affect the remaining inline space that the algorithm considers. It shows a trace, not only a final value. The ordinary case should demonstrate “The non-wrapping badge participates in layout and may change the selected text breaks.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Inline content consumes space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Inline content consumes space, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
CHAPTER 11 OF 20 . Handle boundaries
11. The number of lines should usually stay stable
When better balance is possible, the specification says balancing should avoid changing the line count and must not change it for five or fewer lines compared with auto. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is assuming balance always reduces a three-line heading to two lines. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for The number of lines should usually stay stable, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the The number of lines should usually stay stable chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on assuming balance always reduces a three-line heading to two lines. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.title { text-wrap:auto; }
.title.balanced { text-wrap:balance; }Explained result. For a short block, the balanced version redistributes breaks within the same line count rather than promising fewer lines. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: parent guide. Predict the rule using a section title contains an inline emphasis span. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “When better balance is possible, the specification says balancing should avoid changing the line count and must not change it for five or fewer lines compared with auto.” Apply this procedure: State the contract for The number of lines should usually stay stable, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: For a short block, the balanced version redistributes breaks within the same line count rather than promising fewer lines. For the parent guide, add one near-miss that exposes assuming balance always reduces a three-line heading to two lines. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: science caption. Contrast the rule using a compact label competes with a fixed icon for line space. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “When better balance is possible, the specification says balancing should avoid changing the line count and must not change it for five or fewer lines compared with auto.” Apply this procedure: State the contract for The number of lines should usually stay stable, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: For a short block, the balanced version redistributes breaks within the same line count rather than promising fewer lines. For the science caption, add one near-miss that exposes assuming balance always reduces a three-line heading to two lines. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: responsive laboratory. Stress-test the rule using container widths reveal where balancing helps or disappears. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “When better balance is possible, the specification says balancing should avoid changing the line count and must not change it for five or fewer lines compared with auto.” Apply this procedure: State the contract for The number of lines should usually stay stable, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: For a short block, the balanced version redistributes breaks within the same line count rather than promising fewer lines. For the responsive laboratory, add one near-miss that exposes assuming balance always reduces a three-line heading to two lines. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: accessibility audit. Explain the rule using zoom, custom fonts and reflow test reading without forced breaks. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “When better balance is possible, the specification says balancing should avoid changing the line count and must not change it for five or fewer lines compared with auto.” Apply this procedure: State the contract for The number of lines should usually stay stable, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: For a short block, the balanced version redistributes breaks within the same line count rather than promising fewer lines. For the accessibility audit, add one near-miss that exposes assuming balance always reduces a three-line heading to two lines. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers assuming balance always reduces a three-line heading to two lines.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for The number of lines should usually stay stable, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from The number of lines should usually stay stable?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing assuming balance always reduces a three-line heading to two lines be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny accessibility audit with zoom, custom fonts and reflow test reading without forced breaks. Include one ordinary case, one boundary and one deliberate failure caused by assuming balance always reduces a three-line heading to two lines. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: When better balance is possible, the specification says balancing should avoid changing the line count and must not change it for five or fewer lines compared with auto. It shows a trace, not only a final value. The ordinary case should demonstrate “For a short block, the balanced version redistributes breaks within the same line count rather than promising fewer lines.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for The number of lines should usually stay stable, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For The number of lines should usually stay stable, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
The specification defines the goal and constraints but leaves the precise balancing algorithm to the browser. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is requiring pixel-identical break choices in every engine and font environment. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for User agents define the exact algorithm, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the User agents define the exact algorithm chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on requiring pixel-identical break choices in every engine and font environment. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.title { text-wrap:balance; }Explained result. Different conforming browsers may choose different improved breaks while following the same high-level rule. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: responsive laboratory. Contrast the rule using container widths reveal where balancing helps or disappears. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The specification defines the goal and constraints but leaves the precise balancing algorithm to the browser.” Apply this procedure: State the contract for User agents define the exact algorithm, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Different conforming browsers may choose different improved breaks while following the same high-level rule. For the responsive laboratory, add one near-miss that exposes requiring pixel-identical break choices in every engine and font environment. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: accessibility audit. Stress-test the rule using zoom, custom fonts and reflow test reading without forced breaks. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The specification defines the goal and constraints but leaves the precise balancing algorithm to the browser.” Apply this procedure: State the contract for User agents define the exact algorithm, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Different conforming browsers may choose different improved breaks while following the same high-level rule. For the accessibility audit, add one near-miss that exposes requiring pixel-identical break choices in every engine and font environment. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: study-card heading. Explain the rule using a short title wraps across two lines on a narrow phone. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The specification defines the goal and constraints but leaves the precise balancing algorithm to the browser.” Apply this procedure: State the contract for User agents define the exact algorithm, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Different conforming browsers may choose different improved breaks while following the same high-level rule. For the study-card heading, add one near-miss that exposes requiring pixel-identical break choices in every engine and font environment. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: project banner. Transfer the rule using one announcement title adapts from laptop to mobile width. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “The specification defines the goal and constraints but leaves the precise balancing algorithm to the browser.” Apply this procedure: State the contract for User agents define the exact algorithm, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Different conforming browsers may choose different improved breaks while following the same high-level rule. For the project banner, add one near-miss that exposes requiring pixel-identical break choices in every engine and font environment. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers requiring pixel-identical break choices in every engine and font environment.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for User agents define the exact algorithm, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from User agents define the exact algorithm?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing requiring pixel-identical break choices in every engine and font environment be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny study-card heading with a short title wraps across two lines on a narrow phone. Include one ordinary case, one boundary and one deliberate failure caused by requiring pixel-identical break choices in every engine and font environment. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: The specification defines the goal and constraints but leaves the precise balancing algorithm to the browser. It shows a trace, not only a final value. The ordinary case should demonstrate “Different conforming browsers may choose different improved breaks while following the same high-level rule.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for User agents define the exact algorithm, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For User agents define the exact algorithm, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
User agents may treat balance as auto when more than ten lines would need balancing, limiting expensive work and unsuitable use. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is applying balance to an essay and promising all paragraphs will be even. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Long blocks may fall back to auto, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Long blocks may fall back to auto chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on applying balance to an essay and promising all paragraphs will be even. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
article p { text-wrap:auto; }
article h2 { text-wrap:balance; }Explained result. The rule targets short headings; long paragraph wrapping remains ordinary and predictable. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: study-card heading. Stress-test the rule using a short title wraps across two lines on a narrow phone. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “User agents may treat balance as auto when more than ten lines would need balancing, limiting expensive work and unsuitable use.” Apply this procedure: State the contract for Long blocks may fall back to auto, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The rule targets short headings; long paragraph wrapping remains ordinary and predictable. For the study-card heading, add one near-miss that exposes applying balance to an essay and promising all paragraphs will be even. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: project banner. Explain the rule using one announcement title adapts from laptop to mobile width. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “User agents may treat balance as auto when more than ten lines would need balancing, limiting expensive work and unsuitable use.” Apply this procedure: State the contract for Long blocks may fall back to auto, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The rule targets short headings; long paragraph wrapping remains ordinary and predictable. For the project banner, add one near-miss that exposes applying balance to an essay and promising all paragraphs will be even. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: revision dashboard. Transfer the rule using card headings vary in length but keep readable rhythm. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “User agents may treat balance as auto when more than ten lines would need balancing, limiting expensive work and unsuitable use.” Apply this procedure: State the contract for Long blocks may fall back to auto, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The rule targets short headings; long paragraph wrapping remains ordinary and predictable. For the revision dashboard, add one near-miss that exposes applying balance to an essay and promising all paragraphs will be even. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: CCA poster. Predict the rule using a bilingual heading tests language and font coverage. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “User agents may treat balance as auto when more than ten lines would need balancing, limiting expensive work and unsuitable use.” Apply this procedure: State the contract for Long blocks may fall back to auto, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The rule targets short headings; long paragraph wrapping remains ordinary and predictable. For the CCA poster, add one near-miss that exposes applying balance to an essay and promising all paragraphs will be even. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers applying balance to an essay and promising all paragraphs will be even.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Long blocks may fall back to auto, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Long blocks may fall back to auto?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing applying balance to an essay and promising all paragraphs will be even be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny project banner with one announcement title adapts from laptop to mobile width. Include one ordinary case, one boundary and one deliberate failure caused by applying balance to an essay and promising all paragraphs will be even. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: User agents may treat balance as auto when more than ten lines would need balancing, limiting expensive work and unsuitable use. It shows a trace, not only a final value. The ordinary case should demonstrate “The rule targets short headings; long paragraph wrapping remains ordinary and predictable.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Long blocks may fall back to auto, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Long blocks may fall back to auto, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
Short multi-line headings and callouts gain the most from distributing ragged space without author-inserted line breaks. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is balancing every paragraph because the property sounds generally prettier. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Headings are the natural use case, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Headings are the natural use case chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on balancing every paragraph because the property sounds generally prettier. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
h1,h2,.callout-title { text-wrap:balance; }Explained result. Selective use aligns the property with short blocks where line relationships are visible. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: revision dashboard. Explain the rule using card headings vary in length but keep readable rhythm. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Short multi-line headings and callouts gain the most from distributing ragged space without author-inserted line breaks.” Apply this procedure: State the contract for Headings are the natural use case, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Selective use aligns the property with short blocks where line relationships are visible. For the revision dashboard, add one near-miss that exposes balancing every paragraph because the property sounds generally prettier. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: CCA poster. Transfer the rule using a bilingual heading tests language and font coverage. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Short multi-line headings and callouts gain the most from distributing ragged space without author-inserted line breaks.” Apply this procedure: State the contract for Headings are the natural use case, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Selective use aligns the property with short blocks where line relationships are visible. For the CCA poster, add one near-miss that exposes balancing every paragraph because the property sounds generally prettier. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: parent guide. Predict the rule using a section title contains an inline emphasis span. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Short multi-line headings and callouts gain the most from distributing ragged space without author-inserted line breaks.” Apply this procedure: State the contract for Headings are the natural use case, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Selective use aligns the property with short blocks where line relationships are visible. For the parent guide, add one near-miss that exposes balancing every paragraph because the property sounds generally prettier. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: science caption. Contrast the rule using a compact label competes with a fixed icon for line space. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Short multi-line headings and callouts gain the most from distributing ragged space without author-inserted line breaks.” Apply this procedure: State the contract for Headings are the natural use case, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Selective use aligns the property with short blocks where line relationships are visible. For the science caption, add one near-miss that exposes balancing every paragraph because the property sounds generally prettier. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers balancing every paragraph because the property sounds generally prettier.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Headings are the natural use case, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Headings are the natural use case?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing balancing every paragraph because the property sounds generally prettier be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny revision dashboard with card headings vary in length but keep readable rhythm. Include one ordinary case, one boundary and one deliberate failure caused by balancing every paragraph because the property sounds generally prettier. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: Short multi-line headings and callouts gain the most from distributing ragged space without author-inserted line breaks. It shows a trace, not only a final value. The ordinary case should demonstrate “Selective use aligns the property with short blocks where line relationships are visible.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Headings are the natural use case, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Headings are the natural use case, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
A nowrap mode or preserved formatting can remove ordinary opportunities, leaving balance with nothing useful to redistribute. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is adding balance beside white-space:nowrap and expecting two lines. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for White-space can prevent visible wrapping, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the White-space can prevent visible wrapping chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on adding balance beside white-space:nowrap and expecting two lines. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.title { white-space:nowrap; text-wrap-style:balance; }Explained result. The nowrap decision prevents soft wrapping, so balance has no multi-line layout to improve. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: parent guide. Transfer the rule using a section title contains an inline emphasis span. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “A nowrap mode or preserved formatting can remove ordinary opportunities, leaving balance with nothing useful to redistribute.” Apply this procedure: State the contract for White-space can prevent visible wrapping, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The nowrap decision prevents soft wrapping, so balance has no multi-line layout to improve. For the parent guide, add one near-miss that exposes adding balance beside white-space:nowrap and expecting two lines. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: science caption. Predict the rule using a compact label competes with a fixed icon for line space. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “A nowrap mode or preserved formatting can remove ordinary opportunities, leaving balance with nothing useful to redistribute.” Apply this procedure: State the contract for White-space can prevent visible wrapping, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The nowrap decision prevents soft wrapping, so balance has no multi-line layout to improve. For the science caption, add one near-miss that exposes adding balance beside white-space:nowrap and expecting two lines. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: responsive laboratory. Contrast the rule using container widths reveal where balancing helps or disappears. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “A nowrap mode or preserved formatting can remove ordinary opportunities, leaving balance with nothing useful to redistribute.” Apply this procedure: State the contract for White-space can prevent visible wrapping, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The nowrap decision prevents soft wrapping, so balance has no multi-line layout to improve. For the responsive laboratory, add one near-miss that exposes adding balance beside white-space:nowrap and expecting two lines. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: accessibility audit. Stress-test the rule using zoom, custom fonts and reflow test reading without forced breaks. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “A nowrap mode or preserved formatting can remove ordinary opportunities, leaving balance with nothing useful to redistribute.” Apply this procedure: State the contract for White-space can prevent visible wrapping, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The nowrap decision prevents soft wrapping, so balance has no multi-line layout to improve. For the accessibility audit, add one near-miss that exposes adding balance beside white-space:nowrap and expecting two lines. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers adding balance beside white-space:nowrap and expecting two lines.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for White-space can prevent visible wrapping, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from White-space can prevent visible wrapping?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing adding balance beside white-space:nowrap and expecting two lines be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny CCA poster with a bilingual heading tests language and font coverage. Include one ordinary case, one boundary and one deliberate failure caused by adding balance beside white-space:nowrap and expecting two lines. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: A nowrap mode or preserved formatting can remove ordinary opportunities, leaving balance with nothing useful to redistribute. It shows a trace, not only a final value. The ordinary case should demonstrate “The nowrap decision prevents soft wrapping, so balance has no multi-line layout to improve.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for White-space can prevent visible wrapping, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For White-space can prevent visible wrapping, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
Because text-wrap is a shorthand, a later text-wrap value resets omitted longhands to their initial values. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is setting balance and later writing text-wrap:wrap without noticing style returns to auto. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for The shorthand can reset a prior style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the The shorthand can reset a prior style chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on setting balance and later writing text-wrap:wrap without noticing style returns to auto. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.title { text-wrap:balance; }
@media (wide) { .title { text-wrap:wrap; } }Explained result. Inside the later rule, mode is wrap and style is reset to auto. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: responsive laboratory. Predict the rule using container widths reveal where balancing helps or disappears. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Because text-wrap is a shorthand, a later text-wrap value resets omitted longhands to their initial values.” Apply this procedure: State the contract for The shorthand can reset a prior style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Inside the later rule, mode is wrap and style is reset to auto. For the responsive laboratory, add one near-miss that exposes setting balance and later writing text-wrap:wrap without noticing style returns to auto. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: accessibility audit. Contrast the rule using zoom, custom fonts and reflow test reading without forced breaks. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Because text-wrap is a shorthand, a later text-wrap value resets omitted longhands to their initial values.” Apply this procedure: State the contract for The shorthand can reset a prior style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Inside the later rule, mode is wrap and style is reset to auto. For the accessibility audit, add one near-miss that exposes setting balance and later writing text-wrap:wrap without noticing style returns to auto. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: study-card heading. Stress-test the rule using a short title wraps across two lines on a narrow phone. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Because text-wrap is a shorthand, a later text-wrap value resets omitted longhands to their initial values.” Apply this procedure: State the contract for The shorthand can reset a prior style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Inside the later rule, mode is wrap and style is reset to auto. For the study-card heading, add one near-miss that exposes setting balance and later writing text-wrap:wrap without noticing style returns to auto. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: project banner. Explain the rule using one announcement title adapts from laptop to mobile width. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Because text-wrap is a shorthand, a later text-wrap value resets omitted longhands to their initial values.” Apply this procedure: State the contract for The shorthand can reset a prior style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Inside the later rule, mode is wrap and style is reset to auto. For the project banner, add one near-miss that exposes setting balance and later writing text-wrap:wrap without noticing style returns to auto. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers setting balance and later writing text-wrap:wrap without noticing style returns to auto.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for The shorthand can reset a prior style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from The shorthand can reset a prior style?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing setting balance and later writing text-wrap:wrap without noticing style returns to auto be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny parent guide with a section title contains an inline emphasis span. Include one ordinary case, one boundary and one deliberate failure caused by setting balance and later writing text-wrap:wrap without noticing style returns to auto. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: Because text-wrap is a shorthand, a later text-wrap value resets omitted longhands to their initial values. It shows a trace, not only a final value. The ordinary case should demonstrate “Inside the later rule, mode is wrap and style is reset to auto.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for The shorthand can reset a prior style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For The shorthand can reset a prior style, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
CHAPTER 17 OF 20 . Transfer with judgment
17. Container queries can scope the decision
A component can enable balance only at widths where its heading forms a useful small number of lines. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is tying a reusable card to the viewport instead of its own available space. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Container queries can scope the decision, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Container queries can scope the decision chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on tying a reusable card to the viewport instead of its own available space. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
@container (max-width:28rem) { .card-title { text-wrap:balance; } }Explained result. The card responds to its container, matching the actual input that changes its line boxes. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: study-card heading. Contrast the rule using a short title wraps across two lines on a narrow phone. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “A component can enable balance only at widths where its heading forms a useful small number of lines.” Apply this procedure: State the contract for Container queries can scope the decision, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The card responds to its container, matching the actual input that changes its line boxes. For the study-card heading, add one near-miss that exposes tying a reusable card to the viewport instead of its own available space. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: project banner. Stress-test the rule using one announcement title adapts from laptop to mobile width. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “A component can enable balance only at widths where its heading forms a useful small number of lines.” Apply this procedure: State the contract for Container queries can scope the decision, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The card responds to its container, matching the actual input that changes its line boxes. For the project banner, add one near-miss that exposes tying a reusable card to the viewport instead of its own available space. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: revision dashboard. Explain the rule using card headings vary in length but keep readable rhythm. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “A component can enable balance only at widths where its heading forms a useful small number of lines.” Apply this procedure: State the contract for Container queries can scope the decision, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The card responds to its container, matching the actual input that changes its line boxes. For the revision dashboard, add one near-miss that exposes tying a reusable card to the viewport instead of its own available space. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: CCA poster. Transfer the rule using a bilingual heading tests language and font coverage. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “A component can enable balance only at widths where its heading forms a useful small number of lines.” Apply this procedure: State the contract for Container queries can scope the decision, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The card responds to its container, matching the actual input that changes its line boxes. For the CCA poster, add one near-miss that exposes tying a reusable card to the viewport instead of its own available space. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers tying a reusable card to the viewport instead of its own available space.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Container queries can scope the decision, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Container queries can scope the decision?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing tying a reusable card to the viewport instead of its own available space be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny science caption with a compact label competes with a fixed icon for line space. Include one ordinary case, one boundary and one deliberate failure caused by tying a reusable card to the viewport instead of its own available space. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: A component can enable balance only at widths where its heading forms a useful small number of lines. It shows a trace, not only a final value. The ordinary case should demonstrate “The card responds to its container, matching the actual input that changes its line boxes.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Container queries can scope the decision, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Container queries can scope the decision, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
CHAPTER 18 OF 20 . Transfer with judgment
18. Feature queries support progressive enhancement
An @supports rule can add balance only when the property-value pair is recognised, leaving ordinary wrapping as the base. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is making readable text depend on balance support. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Feature queries support progressive enhancement, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Feature queries support progressive enhancement chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on making readable text depend on balance support. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.title { overflow-wrap:anywhere; }
@supports (text-wrap:balance) { .title { text-wrap:balance; } }Explained result. Unsupported browsers retain functional wrapping; supporting browsers gain the enhancement. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: revision dashboard. Stress-test the rule using card headings vary in length but keep readable rhythm. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “An @supports rule can add balance only when the property-value pair is recognised, leaving ordinary wrapping as the base.” Apply this procedure: State the contract for Feature queries support progressive enhancement, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Unsupported browsers retain functional wrapping; supporting browsers gain the enhancement. For the revision dashboard, add one near-miss that exposes making readable text depend on balance support. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: CCA poster. Explain the rule using a bilingual heading tests language and font coverage. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “An @supports rule can add balance only when the property-value pair is recognised, leaving ordinary wrapping as the base.” Apply this procedure: State the contract for Feature queries support progressive enhancement, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Unsupported browsers retain functional wrapping; supporting browsers gain the enhancement. For the CCA poster, add one near-miss that exposes making readable text depend on balance support. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: parent guide. Transfer the rule using a section title contains an inline emphasis span. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “An @supports rule can add balance only when the property-value pair is recognised, leaving ordinary wrapping as the base.” Apply this procedure: State the contract for Feature queries support progressive enhancement, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Unsupported browsers retain functional wrapping; supporting browsers gain the enhancement. For the parent guide, add one near-miss that exposes making readable text depend on balance support. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: science caption. Predict the rule using a compact label competes with a fixed icon for line space. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “An @supports rule can add balance only when the property-value pair is recognised, leaving ordinary wrapping as the base.” Apply this procedure: State the contract for Feature queries support progressive enhancement, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: Unsupported browsers retain functional wrapping; supporting browsers gain the enhancement. For the science caption, add one near-miss that exposes making readable text depend on balance support. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers making readable text depend on balance support.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Feature queries support progressive enhancement, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Feature queries support progressive enhancement?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing making readable text depend on balance support be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny responsive laboratory with container widths reveal where balancing helps or disappears. Include one ordinary case, one boundary and one deliberate failure caused by making readable text depend on balance support. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: An @supports rule can add balance only when the property-value pair is recognised, leaving ordinary wrapping as the base. It shows a trace, not only a final value. The ordinary case should demonstrate “Unsupported browsers retain functional wrapping; supporting browsers gain the enhancement.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Feature queries support progressive enhancement, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Feature queries support progressive enhancement, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
Resize, browser zoom, text scaling, language changes and delayed font loading expose layouts that a fixed desktop screenshot misses. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is approving one width and hiding overflow at accessibility zoom. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Tests must include zoom and late fonts, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Tests must include zoom and late fonts chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on approving one width and hiding overflow at accessibility zoom. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
document.fonts.ready.then(()=>document.body.classList.add('fonts-ready'));Explained result. The test observes the final font metrics and reflow rather than assuming the first paint is stable. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: parent guide. Explain the rule using a section title contains an inline emphasis span. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Resize, browser zoom, text scaling, language changes and delayed font loading expose layouts that a fixed desktop screenshot misses.” Apply this procedure: State the contract for Tests must include zoom and late fonts, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The test observes the final font metrics and reflow rather than assuming the first paint is stable. For the parent guide, add one near-miss that exposes approving one width and hiding overflow at accessibility zoom. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: science caption. Transfer the rule using a compact label competes with a fixed icon for line space. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Resize, browser zoom, text scaling, language changes and delayed font loading expose layouts that a fixed desktop screenshot misses.” Apply this procedure: State the contract for Tests must include zoom and late fonts, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The test observes the final font metrics and reflow rather than assuming the first paint is stable. For the science caption, add one near-miss that exposes approving one width and hiding overflow at accessibility zoom. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: responsive laboratory. Predict the rule using container widths reveal where balancing helps or disappears. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Resize, browser zoom, text scaling, language changes and delayed font loading expose layouts that a fixed desktop screenshot misses.” Apply this procedure: State the contract for Tests must include zoom and late fonts, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The test observes the final font metrics and reflow rather than assuming the first paint is stable. For the responsive laboratory, add one near-miss that exposes approving one width and hiding overflow at accessibility zoom. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: accessibility audit. Contrast the rule using zoom, custom fonts and reflow test reading without forced breaks. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Resize, browser zoom, text scaling, language changes and delayed font loading expose layouts that a fixed desktop screenshot misses.” Apply this procedure: State the contract for Tests must include zoom and late fonts, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The test observes the final font metrics and reflow rather than assuming the first paint is stable. For the accessibility audit, add one near-miss that exposes approving one width and hiding overflow at accessibility zoom. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers approving one width and hiding overflow at accessibility zoom.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Tests must include zoom and late fonts, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Tests must include zoom and late fonts?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing approving one width and hiding overflow at accessibility zoom be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny accessibility audit with zoom, custom fonts and reflow test reading without forced breaks. Include one ordinary case, one boundary and one deliberate failure caused by approving one width and hiding overflow at accessibility zoom. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: Resize, browser zoom, text scaling, language changes and delayed font loading expose layouts that a fixed desktop screenshot misses. It shows a trace, not only a final value. The ordinary case should demonstrate “The test observes the final font metrics and reflow rather than assuming the first paint is stable.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Tests must include zoom and late fonts, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Tests must include zoom and late fonts, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
CHAPTER 20 OF 20 . Transfer with judgment
20. Choose balance for typography, not content control
Use balance to improve short responsive line composition, but keep semantic markup, natural source text and readable fallbacks independent of exact breaks. Treat that sentence as a testable model. A secure learner can point to the relevant input, name the operation, describe the resulting state and identify one observation that would prove the model incomplete.
The high-value mistake in this chapter is using CSS wrapping to encode meaning that requires punctuation or separate elements. It matters because the output may look reasonable while the ownership, ordering, identity or safety rule is wrong. State the contract for Choose balance for typography, not content control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.
For the Choose balance for typography, not content control chapter on CSS text-wrap: balance, use a two-column trace during a short Punggol home session. On the left, write the predicted state for this exact mechanism before the tool runs. On the right, record the observation that bears on using CSS wrapping to encode meaning that requires punctuation or separate elements. Explain the earliest difference with one causal sentence, then repeat only the smallest changed case.
Core worked example
.lesson-heading { text-wrap:balance; }Explained result. The heading remains meaningful in source order and without the enhancement; balancing is presentation, not semantics. Check the boundary as well as the happy path: ask what happens with an empty input, a duplicate or tied value, an unsupported type, a missing path, a NULL, or a second reference to the same object. Only the relevant boundary should be kept; the list is a prompt for judgment, not a demand to force every case into every example.
Four purposeful transfer cases
Case 1: responsive laboratory. Transfer the rule using container widths reveal where balancing helps or disappears. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Use balance to improve short responsive line composition, but keep semantic markup, natural source text and readable fallbacks independent of exact breaks.” Apply this procedure: State the contract for Choose balance for typography, not content control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The heading remains meaningful in source order and without the enhancement; balancing is presentation, not semantics. For the responsive laboratory, add one near-miss that exposes using CSS wrapping to encode meaning that requires punctuation or separate elements. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 2: accessibility audit. Predict the rule using zoom, custom fonts and reflow test reading without forced breaks. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Use balance to improve short responsive line composition, but keep semantic markup, natural source text and readable fallbacks independent of exact breaks.” Apply this procedure: State the contract for Choose balance for typography, not content control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The heading remains meaningful in source order and without the enhancement; balancing is presentation, not semantics. For the accessibility audit, add one near-miss that exposes using CSS wrapping to encode meaning that requires punctuation or separate elements. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 3: study-card heading. Contrast the rule using a short title wraps across two lines on a narrow phone. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Use balance to improve short responsive line composition, but keep semantic markup, natural source text and readable fallbacks independent of exact breaks.” Apply this procedure: State the contract for Choose balance for typography, not content control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The heading remains meaningful in source order and without the enhancement; balancing is presentation, not semantics. For the study-card heading, add one near-miss that exposes using CSS wrapping to encode meaning that requires punctuation or separate elements. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Case 4: project banner. Stress-test the rule using one announcement title adapts from laptop to mobile width. State the input grain or object graph, the chapter boundary and the intended output before choosing syntax. Change only one variable, so a wrong prediction has a single plausible cause.
Reasoned route. Begin with “Use balance to improve short responsive line composition, but keep semantic markup, natural source text and readable fallbacks independent of exact breaks.” Apply this procedure: State the contract for Choose balance for typography, not content control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. The expected mechanism is: The heading remains meaningful in source order and without the enhancement; balancing is presentation, not semantics. For the project banner, add one near-miss that exposes using CSS wrapping to encode meaning that requires punctuation or separate elements. The answer is complete only when it says why the near-miss fails and how the corrected model transfers to a different project without relying on the original variable names.
Diagnostic route
- Model check: ask the learner to draw or list the exact rows, fields, references, paths or states involved.
- Boundary check: create the smallest input that triggers using CSS wrapping to encode meaning that requires punctuation or separate elements.
- Evidence check: separate a printed value from identity, ordering, ownership, type or repository state.
- Repair check: use the reversible procedure “State the contract for Choose balance for typography, not content control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence.” and record the first changed observation.
- Transfer check: repeat the rule in a second context and identify what remains invariant.
A parent does not need to know the final CSS text-wrap: balance syntax. For this chapter, useful prompts are: “What did you expect from Choose balance for typography, not content control?”, “Which state changed first?”, “What evidence tests that prediction?”, and “Can the case exposing using CSS wrapping to encode meaning that requires punctuation or separate elements be made smaller?” The learner, not the parent, should supply the technical explanation.
Practice with an explained answer
Question. Build a tiny study-card heading with a short title wraps across two lines on a narrow phone. Include one ordinary case, one boundary and one deliberate failure caused by using CSS wrapping to encode meaning that requires punctuation or separate elements. Predict each result before using a tool, then report the first point where observation differs from prediction.
Answer guide. A strong response starts with the rule: Use balance to improve short responsive line composition, but keep semantic markup, natural source text and readable fallbacks independent of exact breaks. It shows a trace, not only a final value. The ordinary case should demonstrate “The heading remains meaningful in source order and without the enhancement; balancing is presentation, not semantics.” The boundary must exercise the same mechanism at an edge, and the deliberate failure must be repaired with: State the contract for Choose balance for typography, not content control, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Other data choices are valid when the evidence supports the same causal chain.
Decision and transfer
For Choose balance for typography, not content control, separate the documented CSS text-wrap: balance mechanism from the project policy. State exactly what the technical contract guarantees, then state the project choice about validation, ordering, ownership, performance or recovery. Test whether the same distinction survives one transfer case, and keep stateful experiments disposable and backed up.
Previous chapter . Contents . Next chapter
Parent guide: choose the next useful step
Start with evidence, not 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 syntax fails, practise reference use. If routine cases are correct but boundaries fail, vary ties, defaults, unsupported inputs, ownership or missing paths. If explanations transfer, move to a small project.
Keep a weekly record with four lines: concept, prediction, observed difference and next test. Stop when fatigue replaces reasoning. A smaller case tomorrow is more useful than another hour of copying tonight.
Seek specialist help when cause and effect remain invisible after examples are reduced, when accessibility or data-loss implications are unclear, or when an important repository, database or application state may be at risk. Good support should make the learner’s reasoning more independent.
Capstone practice with explained routes
1. study-card heading: model, boundary and recovery
Create a small study-card heading using a short title wraps across two lines on a narrow phone. Combine “text-wrap is a shorthand” with one later chapter. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: The text-wrap shorthand sets text-wrap-mode and text-wrap-style; the single value balance selects the balance style while omitted mode uses its initial wrap value. Apply: State the contract for text-wrap is a shorthand, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Verify: The declaration requests wrapping and the balance selection style for the title. Then add a second chapter whose boundary could change the outcome. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement. The exact data may differ; the causal chain must be checkable.
2. project banner: model, boundary and recovery
Create a small project banner using one announcement title adapts from laptop to mobile width. Combine “It cannot invent arbitrary word breaks” with one later chapter. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: Language rules and other line-breaking properties define soft wrap opportunities; balance prioritises among those opportunities. Apply: State the contract for It cannot invent arbitrary word breaks, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Verify: overflow-wrap can introduce emergency opportunities, while balance then participates in selecting among available choices. Then add a second chapter whose boundary could change the outcome. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement. The exact data may differ; the causal chain must be checkable.
3. revision dashboard: model, boundary and recovery
Create a small revision dashboard using card headings vary in length but keep readable rhythm. Combine “Language affects break opportunities” with one later chapter. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: The content language and writing system influence allowed line breaks, so correct lang metadata is part of the typographic input. Apply: State the contract for Language affects break opportunities, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Verify: The browser combines language-aware line breaking with the requested balance style. Then add a second chapter whose boundary could change the outcome. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement. The exact data may differ; the causal chain must be checkable.
4. CCA poster: model, boundary and recovery
Create a small CCA poster using a bilingual heading tests language and font coverage. Combine “Inline content consumes space” with one later chapter. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: Inline icons, emphasis, badges and floats affect the remaining inline space that the algorithm considers. Apply: State the contract for Inline content consumes space, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Verify: The non-wrapping badge participates in layout and may change the selected text breaks. Then add a second chapter whose boundary could change the outcome. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement. The exact data may differ; the causal chain must be checkable.
5. parent guide: model, boundary and recovery
Create a small parent guide using a section title contains an inline emphasis span. Combine “Long blocks may fall back to auto” with one later chapter. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: User agents may treat balance as auto when more than ten lines would need balancing, limiting expensive work and unsuitable use. Apply: State the contract for Long blocks may fall back to auto, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Verify: The rule targets short headings; long paragraph wrapping remains ordinary and predictable. Then add a second chapter whose boundary could change the outcome. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement. The exact data may differ; the causal chain must be checkable.
6. science caption: model, boundary and recovery
Create a small science caption using a compact label competes with a fixed icon for line space. Combine “The shorthand can reset a prior style” with one later chapter. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: Because text-wrap is a shorthand, a later text-wrap value resets omitted longhands to their initial values. Apply: State the contract for The shorthand can reset a prior style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Verify: Inside the later rule, mode is wrap and style is reset to auto. Then add a second chapter whose boundary could change the outcome. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement. The exact data may differ; the causal chain must be checkable.
7. responsive laboratory: model, boundary and recovery
Create a small responsive laboratory using container widths reveal where balancing helps or disappears. Combine “Tests must include zoom and late fonts” with one later chapter. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: Resize, browser zoom, text scaling, language changes and delayed font loading expose layouts that a fixed desktop screenshot misses. Apply: State the contract for Tests must include zoom and late fonts, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Verify: The test observes the final font metrics and reflow rather than assuming the first paint is stable. Then add a second chapter whose boundary could change the outcome. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement. The exact data may differ; the causal chain must be checkable.
8. accessibility audit: model, boundary and recovery
Create a small accessibility audit using zoom, custom fonts and reflow test reading without forced breaks. Combine “The longhand is text-wrap-style” with one later chapter. Include an ordinary case, a boundary, a deliberate failure and a recovery. Write the expected state before each operation.
Explained route. Start with: text-wrap-style: balance expresses the style decision directly while leaving the separately specified wrapping mode intact. Apply: State the contract for The longhand is text-wrap-style, predict one ordinary case and one boundary, run the smallest disposable test, then explain the earliest difference between prediction and evidence. Verify: The two declarations make mode and style explicit, with the same core intent as the shorthand. Then add a second chapter whose boundary could change the outcome. A complete solution contains the input model, a trace, observed evidence, a correction and one transfer statement. The exact data may differ; the causal chain must be checkable.
Frequently asked questions
How long should a practice session be?
Use one complete prediction–observation–explanation cycle while attention remains good. Ten to twenty focused minutes can be enough.
Should every option or function be memorised?
No. Memorise the governing distinctions and practise retrieving the official 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 official documentation be used?
Use it whenever syntax, supported types, SQL dialect behaviour or Git version details matter. Primary documentation 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.

