fix(auto): stop footer-flooding flat content pages#3
Open
mixflavor wants to merge 2 commits into
Open
Conversation
Page-end overwrite dyed html+body+body::before with the last opaque section's color, flooding the visible background of flat light pages with a short high-contrast footer. Classify the end section as a designed end-zone vs an incidental footer; for the incidental case tint <html> only (correct rubber-band color, body left alone). Add overscrollFill: 'auto'|'always'|'never' escape hatch. Backward compatible: tall/gradient/continuous endings still fully overwrite. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Page-end overwrite dyed
html+body+body::beforewith the last opaque section's color, flooding the visible background of flat light pages with a short high-contrast footer. This classifies the end section as a designed end-zone vs an incidental footer:html+body+body::beforeoverwrite (unchanged)<html>only (correct rubber-band color, visible body left alone)Adds an
overscrollFill: 'auto' | 'always' | 'never'escape hatch (default'auto'). Backward compatible — every pre-existing overscroll case (footer ≥ 50vh) still classifies as end-zone and floods exactly as before.Tests
node test/pure.mjs→ 31/0node test/integration.mjs→ 79/0 (incl. new N–N5: incidental-no-flood / always / never / tall-still-floods / continuous-color-floods)Both engines kept in lockstep (
src/utils.mjsESM +src/utils.jsCJS),.d.ts+ README updated.The chrome tint + overscroll overwrite only render on real iOS Safari 26+ (
if (!isIOS) return); headless/CI proves the decision logic, not the native paint. Before publishing 2.2.0, the real-iPhone regression matrix must pass: gradient page stays seamless / flat page no longer floods brown / rubber-band tints correctly on both.🤖 Generated with Claude Code