Skip to content

Raise CSS floor to Chrome 87 / Safari 14.1 (logical properties) - #4

Merged
vpetersson merged 1 commit into
masterfrom
fix-logical-props-floor
Jul 13, 2026
Merged

Raise CSS floor to Chrome 87 / Safari 14.1 (logical properties)#4
vpetersson merged 1 commit into
masterfrom
fix-logical-props-floor

Conversation

@vpetersson

Copy link
Copy Markdown
Contributor

Follow-up to the degraded-mode work. Bug: on browsers below Chrome 87 / Safari 14.1, CSS logical properties (inset-inline-end, margin-inline-end, …) were dropped — Lightning CSS lowered them to :not(:-webkit-any(:lang(…)))-guarded physical rules that those browsers reject as invalid. Most visible symptom: the rss-reader QR fell to the left, overlapping text.

Fix: raise the browserslist floor to chrome >= 87, safari >= 14.1, firefox >= 78, edge >= 87 — where these logical properties are native, so Lightning CSS keeps them as-is. All other down-leveling (clamp→max(min), @layer flatten, svh/cqw fallbacks, color-mix) remains in effect.

Build-time only (browserslist is read at build); verified: 0 fragile :lang() selectors in output, logical props native, typecheck/lint/tests/es-check pass.

🤖 Generated with Claude Code

The apps use CSS logical properties (inset-inline-end, margin-inline-end, etc.)
pervasively. At the previous Chrome 79 / Safari 11.1 floor those are below native
support, so Lightning CSS lowered each single-sided logical property to physical
right/left guarded by :not(:-webkit-any(:lang(...))) / :not(:is(:lang(...)))
selectors. Chrome 79-86 reject that Level-4 :not() argument as invalid and drop
the whole rule, so the physical position was silently lost -- e.g. the rss-reader
QR fell to its default (left, overlapping the headline).

inset-inline-end / margin-inline-end etc. are native at Chrome 87 / Safari 14.1,
where Lightning CSS keeps them as-is (no fragile selectors). clamp/min/max,
@layer flatten, svh/cqw fallbacks and color-mix lowering all remain in effect.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vpetersson
vpetersson merged commit d6a4a0f 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