VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

The Gold Standard of Websites | Separating Scrollable Direction from Recent Scrolled Direction in Scroll-State Queries

The scrollable feature asks where a scroll container still has clipped, reachable overflow that a user can scroll towards. The scrolled feature asks which way the container most recently moved through a relative scroll. One describes current reachable geometry; the other preserves recent movement history. At the bottom of a vertical scroller, scrolled: bottom can remain true while scrollable: bottom is false.

This specialist guide belongs to the Websites root. It also connects to The Gold Standard of Education | Learning That Transfers into Life and the How X Works hub. The worked cases are original teaching examples; their values and event logs are stated so each conclusion can be checked.

eduKateSG · Websites

Find your next learning step

Use this guide when a scroll-state query seems to treat an available direction as if it were the last movement direction. The fixtures keep the query container, overflow rectangle, current offset, reachable edges, relative scroll, logical axis and post-layout snapshot on separate lines.

ROUTE 1 · CHAPTERS 1–3

Build the first model

Name the input, state, conversion or predicate before following user-visible results.

ROUTE 2 · CHAPTERS 4–5

Trace the decisive branch

Work the accepted path and the nearest boundary case with original examples.

ROUTE 3 · CHAPTERS 6–8

Change one premise

Rebuild the mechanism when state, value, realm, timing or object kind changes.

ROUTE 4 · CHAPTERS 9–10

Handle limits and failures

Keep abrupt completion, availability and application limits visible.

ROUTE 5 · CHAPTERS 11–12

Verify and explain

Use a decisive fixture, changed-context check and concise final account.

Full chapter contents · Websites subject guide

Chapter contents

Build the first model · Chapters 1–3

1. Give geometry and movement history different jobs

2. Establish the scroll-state query container

3. Work reachable overflow from the current offset

Trace the decisive branch · Chapters 4–5

4. Work the most recent relative scroll

5. Build scrollable-down with scrolled-up

Change one premise · Chapters 6–8

6. Build scrolled-down with no downward reach

7. Handle none without collapsing two meanings

8. Resolve logical and physical directions

Handle limits and failures · Chapters 9–10

9. Separate relative scrolls from absolute positioning

10. Respect post-layout snapshots

Verify and explain · Chapters 11–12

11. Build a decisive four-state matrix

12. Explain the match without overclaiming support

CHAPTER 1 OF 12 · Build the first model

1. Give geometry and movement history different jobs

Back to contents

The short answer is that scrollable reports reachable overflow in a direction, while scrolled reports the direction of the most recent relative scroll. Chapter 1 focuses on give geometry and movement history different jobs. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. a 300-pixel-tall scroller contains 900 pixels of content and sits at offset 200; it can still scroll both up and down, while its last 60-pixel downward movement makes scrolled: bottom true. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for give geometry and movement history different jobs is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. move upward by 20 pixels without changing the content extent, so both directions remain scrollable but scrolled changes to top. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: both features are defined in a Working Draft and implementation support can change. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. record the geometry and the exact relative-scroll event rather than inferring either result from the visible scrollbar thumb. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of give geometry and movement history different jobs should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Next chapter

CHAPTER 2 OF 12 · Build the first model

2. Establish the scroll-state query container

Back to contents

The short answer is that the queried element must be a scroll container and establish the relevant scroll-state query context. Chapter 2 focuses on establish the scroll-state query container. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. a panel with overflow: auto, a constrained block size and container-type: scroll-state is queried by a descendant status chip. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for establish the scroll-state query container is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. remove the constrained size so the content no longer overflows and recompute scrollable without changing the authored query. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: container-type does not create overflow or movement. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. inspect the selected query container, its computed overflow and the descendant that receives the conditional style. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of establish the scroll-state query container should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Previous chapter · Next chapter

CHAPTER 3 OF 12 · Build the first model

3. Work reachable overflow from the current offset

Back to contents

The short answer is that scrollable direction depends on clipped overflow that remains reachable from the current scroll position. Chapter 3 focuses on work reachable overflow from the current offset. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. with scrollTop 0 and maximum scrollTop 600, only the downward physical direction is reachable, so scrollable: bottom matches and scrollable: top does not. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for work reachable overflow from the current offset is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. set scrollTop to 250 and show that top and bottom both become reachable. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: negative or otherwise unreachable overflow is excluded by the specification. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. log client size, scroll size, current offset and maximum offset before naming a direction. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of work reachable overflow from the current offset should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Previous chapter · Next chapter

CHAPTER 4 OF 12 · Trace the decisive branch

4. Work the most recent relative scroll

Back to contents

The short answer is that scrolled direction records the direction of the most recent relative movement rather than the directions still available. Chapter 4 focuses on work the most recent relative scroll. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. from offset 250, scrollBy({top: 80}) reaches 330 and produces a downward recent relative scroll. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for work the most recent relative scroll is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. apply scrollBy({top: -30}) and update only the scrolled direction while preserving the same broad reachable range. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: an absolute position assignment and a relative scroll are different inputs under this evolving feature. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. capture the event sequence, before-and-after offsets and whether the tested operation qualifies as a relative scroll. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of work the most recent relative scroll should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Previous chapter · Next chapter

CHAPTER 5 OF 12 · Trace the decisive branch

5. Build scrollable-down with scrolled-up

Back to contents

The short answer is that available future movement can point opposite to the most recent past movement. Chapter 5 focuses on build scrollable-down with scrolled-up. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. from offset 400 of a 0-to-600 range, a 50-pixel upward relative scroll ends at 350; scrolling down remains available while scrolled reports top. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for build scrollable-down with scrolled-up is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. repeat the upward movement at offset 40 and show the same logical pair with a different amount of remaining overflow. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: the feature values do not report distance. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. use a truth table with separate columns for reachable top, reachable bottom and recent direction. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of build scrollable-down with scrolled-up should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Previous chapter · Next chapter

CHAPTER 6 OF 12 · Change one premise

6. Build scrolled-down with no downward reach

Back to contents

The short answer is that recent movement history can remain after the container reaches an edge. Chapter 6 focuses on build scrolled-down with no downward reach. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. a relative downward scroll carries the panel from 560 to its maximum offset 600; scrolled: bottom is true but scrollable: bottom is false. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for build scrolled-down with no downward reach is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. add 120 pixels of content without another relative scroll, making bottom reachable again while the recent direction remains downward. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: layout and snapshot timing determine when the changed geometry becomes query state. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. record the content mutation, layout result and the next post-layout snapshot. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of build scrolled-down with no downward reach should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Previous chapter · Next chapter

CHAPTER 7 OF 12 · Change one premise

7. Handle none without collapsing two meanings

Back to contents

The short answer is that scrollable: none means no reachable scrollable overflow, while scrolled: none means no qualifying relative scroll has yet been recorded. Chapter 7 focuses on handle none without collapsing two meanings. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. a newly created overflowing panel at offset 0 can have scrollable: bottom true and scrolled: none. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for handle none without collapsing two meanings is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. remove its overflow before any scroll so both features become none for different reasons. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: the shared word none does not make the predicates equivalent. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. explain which prerequisite or history is absent for each result. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of handle none without collapsing two meanings should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Previous chapter · Next chapter

CHAPTER 8 OF 12 · Change one premise

8. Resolve logical and physical directions

Back to contents

The short answer is that block-start, inline-end, top and right must be interpreted through the container’s writing mode and direction. Chapter 8 focuses on resolve logical and physical directions. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. in horizontal-tb left-to-right text, downward movement is block-end and physical bottom, while rightward movement is inline-end. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for resolve logical and physical directions is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. change to vertical-rl and remap the logical values without changing the physical scroll delta. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: mixed writing modes make casual up-and-down labels unreliable. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. report both the authored logical query and the resolved physical geometry. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of resolve logical and physical directions should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Previous chapter · Next chapter

CHAPTER 9 OF 12 · Handle limits and failures

9. Separate relative scrolls from absolute positioning

Back to contents

The short answer is that the scrolled feature is tied to the most recent relative scroll, so the operation that changed the offset matters. Chapter 9 focuses on separate relative scrolls from absolute positioning. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. a test uses scrollBy to create a relative downward move, then uses scrollTo to place the panel at a known absolute offset for a separate fixture. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for separate relative scrolls from absolute positioning is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. replace scrollBy with a direct scrollTop assignment and treat the expected scrolled update as a browser-test question rather than an assumption. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: the editor’s draft and implementation details can evolve. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. keep distinct tests for user input, relative APIs and absolute APIs and record the browser version. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of separate relative scrolls from absolute positioning should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Previous chapter · Next chapter

CHAPTER 10 OF 12 · Handle limits and failures

10. Respect post-layout snapshots

Back to contents

The short answer is that scroll-state values are snapshotted after layout at defined event-loop points to avoid style-layout cycles. Chapter 10 focuses on respect post-layout snapshots. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. a rule changes a descendant icon after the panel gains bottom-reachable overflow, while the container’s own dimensions remain stable. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for respect post-layout snapshots is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. make the conditional rule alter layout and observe only the next defined snapshot rather than expecting recursive immediate updates. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: script reads at event boundaries can observe a different moment from the eventual painted result. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. state when mutation, layout, snapshot, style update and paint occur in the fixture. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of respect post-layout snapshots should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Previous chapter · Next chapter

CHAPTER 11 OF 12 · Verify and explain

11. Build a decisive four-state matrix

Back to contents

The short answer is that a useful fixture varies reachable overflow and recent movement independently. Chapter 11 focuses on build a decisive four-state matrix. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. four rows cover bottom reachable with no history, both directions reachable after moving down, both directions reachable after moving up, and bottom unreachable after moving down. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for build a decisive four-state matrix is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. insert content at the bottom of the fourth row and predict the single geometry column that changes. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: one animated demo cannot prove every state combination. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. publish initial sizes, offsets, actions, expected matches and actual browser results. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of build a decisive four-state matrix should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Previous chapter · Next chapter

CHAPTER 12 OF 12 · Verify and explain

12. Explain the match without overclaiming support

Back to contents

The short answer is that a reliable report names the container, current reachable geometry, last relative movement, axis, snapshot and tested specification version. Chapter 12 focuses on explain the match without overclaiming support. Begin with write the query container, container-type, scrollport dimensions, scrollable-overflow extent, current offset, reachable direction, relative-scroll delta, most recent scrolled direction, writing mode, snapshot time and tested browser version on separate lines. Writing those facts first prevents a familiar label or final summary value from replacing the mechanism or measurement basis that actually decides the result.

Worked example. write: at offset 350 the panel can reach both block edges, but its last relative movement was 50 pixels towards block-start, so scrollable:block and scrolled:block-start answer different questions. Treat every stated value as part of a controlled teaching fixture. Record the starting state before the operation, then record each conversion, selection, calculation, check or state transition in order. If a prerequisite fails, stop the trace there rather than inferring later effects from the usual path.

A useful first-principles question for explain the match without overclaiming support is: what must be defined before this comparison can be made? Separate the population or physical quantity, observation, transformation and conclusion. Two reports can show similar values while using different units, windows, targets or measurement rules.

Now change exactly one premise. move to the maximum offset with a block-end relative scroll and update each predicate separately. Recalculate from the changed fact rather than editing the old conclusion. Name the earliest quantity or classification that differs, carry that difference through the remaining steps, and state which observations stay comparable.

The main limit is this: the lesson does not promise interoperable production support in every browser. Keep the measured or reported quantity separate from the wider decision, cause or quality claim. A focused example can establish the stated relationship without pretending to settle every operational, clinical, regulatory or institutional question around it.

Practical evidence check. link the result to the current W3C draft, reduced fixture and browser build. Capture the reported values and exception conditions, and preserve the calculation or observation trail that produced them. A check of only the final label can pass even when an earlier selection, conversion, denominator, target or measurement basis was wrong.

A concise final explanation of explain the match without overclaiming support should state the starting data, governing rule, ordered result and one boundary. It should not depend on one display, one dashboard tile or an unstated assumption. That form is short enough for revision and precise enough for a reproducible evidence note.

Contents · Previous chapter · Return to the Websites subject guide

Frequently asked questions

Does scrollable: bottom mean the user just scrolled down?

No. It means reachable scrollable overflow remains past the bottom edge. The recent movement direction is queried with scrolled.

Can scrollable and scrolled point in opposite directions?

Yes. A panel can have room to move down even though its most recent relative scroll was upward.

Can scrolled: bottom remain true at the bottom edge?

Yes. The last relative movement can have been downward even after no further downward overflow remains reachable.

Why can scrolled be none while the panel already overflows?

Scrollable geometry can exist before any qualifying relative scroll has been recorded.

Are these features safe to assume in every production browser?

No. CSS Conditional Rules Level 5 is a Working Draft. Test current support and keep a fallback for required behaviour.

Continue through the verified reading routes

Start with the wider system

The Gold Standard of Websites · The Gold Standard of Education | Learning That Transfers into Life · How X Works hub

Compare the closest mechanisms

Stuck and Snapped Scroll-State · Scrollable Overflow and Ink Overflow · Overflow Clip and Overflow Hidden · Sticky Scroll Container and Containing Block

Choose the next lesson by reader job

Use the subject root to move from this focused mechanism to the next verified question. Follow a specialist link when its preconditions match your question; return to the wider hub when the next task belongs to a different system.

Authoritative sources and evidence checks

W3C CSS Conditional Rules Module Level 5 · CSSWG Editor's Draft: CSS Conditional Rules Level 5 · CSSWG Scroll-State Container Queries Explainer · W3C CSS Overflow Module Level 3

The W3C Working Draft and CSSWG editor’s materials define scroll-state query containers, reachable scrollable overflow, recent relative-scroll direction and post-layout snapshots. The examples here are original reduced fixtures and explicitly preserve the draft status and browser-support limit.