Skip to content

world-clock: center the time in the degraded (no container-query) layout - #9

Merged
vpetersson merged 1 commit into
masterfrom
fix-worldclock-centering
Jul 13, 2026
Merged

world-clock: center the time in the degraded (no container-query) layout#9
vpetersson merged 1 commit into
masterfrom
fix-worldclock-centering

Conversation

@vpetersson

Copy link
Copy Markdown
Contributor

Follow-up: without container size-containment, margin-block: auto no longer centered the time (it sat in the upper third). In the @supports not (container-type: size) fallback, .card-clock now grows to fill the middle and centers its content, so the time is vertically centered like the non-degraded render. Verified with a faithful no-container-query simulation (time top/bottom offsets now equal, matching modern).

🤖 Generated with Claude Code

Follow-up to the fallback completion: without container size-containment the
base margin-block:auto stopped centering the time (it sat in the upper third,
unlike the non-degraded layout). In the @supports not(container-type) block, grow
.card-clock to fill the middle space and center its content (flex:1 + align-items:
center) so the time is vertically centered like the modern render.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vpetersson
vpetersson merged commit 85d3234 into master Jul 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant