A structured lesson workspace with readable content, hands-on examples, and a clean path to completion.
| Concern | What to inspect | Typical failure |
|---|---|---|
| Core behavior | Logical Properties and Writing Modes | Logical properties map to the current writing mode. They are not just shorter names for left and right; their physical meaning changes with the document flow. |
| Production test | Real content and constraints | The rule works only for the demo values |
| Maintenance | Scope and override path | A later fix creates another exception |
The useful mental model here is practical: how block and inline directions abstract away physical left/right assumptions. When a rule looks obvious but the browser produces something else, start by identifying which constraint or rendering phase is actually winning.
<style>.demo { padding-inline:1rem 1.5rem; }</style><main class="demo">Example content</main>
In production, Logical properties map to the current writing mode. They are not just shorter names for left and right; their physical meaning changes with the document flow. That is the kind of bug that survives visual spot checks because the stylesheet is syntactically valid while the layout contract is wrong.
<style>.demo { margin-block:2rem; }</style><main class="demo">Example content</main>
Engineering judgment: Use logical properties in reusable UI and editorial components where RTL or vertical writing support is plausible.
A good CSS change narrows the problem. Use logical properties in reusable UI and editorial components where RTL or vertical writing support is plausible. This keeps the rule understandable when content, theme, or viewport conditions change later.
<style>.demo { border-inline-start:4px solid; }</style><main class="demo">Example content</main>
Logical border is useful here because it demonstrates logical properties and writing modes under a concrete input rather than as an abstract property list.
<style>.demo { writing-mode:vertical-rl; }</style><main class="demo">Example content</main>
Vertical writing is useful here because it demonstrates logical properties and writing modes under a concrete input rather than as an abstract property list.
Finish the lesson once you have worked through the material. This awards ★ 30 XP.