A structured lesson workspace with readable content, hands-on examples, and a clean path to completion.
| Concern | What to inspect | Typical failure |
|---|---|---|
| Core behavior | Intrinsic and Extrinsic Sizing | Intrinsic sizing surprises often come from content that refuses to shrink. Inspect min-content contributions before adding arbitrary widths. |
| 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 |
A good CSS change narrows the problem. Intrinsic sizing is about the content; extrinsic sizing is about constraints from the formatting context. This keeps the rule understandable when content, theme, or viewport conditions change later.
<style>.demo { grid-template-columns:minmax(0,1fr) 20rem; }</style><main class="demo">Example content</main>
Engineering judgment: Intrinsic sizing is about the content; extrinsic sizing is about constraints from the formatting context.
<style>.demo { width:fit-content(30rem); }</style><main class="demo">Example content</main>
A good CSS change narrows the problem. Intrinsic sizing is about the content; extrinsic sizing is about constraints from the formatting context. This keeps the rule understandable when content, theme, or viewport conditions change later.
In production, Intrinsic sizing surprises often come from content that refuses to shrink. Inspect min-content contributions before adding arbitrary widths. 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 { max-width:100%; }</style><main class="demo">Example content</main>
Example 3 is useful here because it demonstrates intrinsic and extrinsic sizing under a concrete input rather than as an abstract property list.
<style>.demo { min-width:0; }</style><main class="demo">Example content</main>
Example 4 is useful here because it demonstrates intrinsic and extrinsic sizing 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.