Skip to content

fix(universe): keep the selected-body locator centred after lightningcss drops translate beside transform - #1057

Merged
alowpoly merged 1 commit into
mainfrom
fix/locator-minified-offset
Sep 30, 2026
Merged

alowpoly merged 1 commit into
mainfrom
fix/locator-minified-offset

Conversation

@alowpoly

Copy link
Copy Markdown
Contributor

Change

On css.earth the selected body's corner bracket sat 8 px up-left of the body. lightningcss 1.33, Vite's CSS minifier, drops translate and scale from a rule that also sets transform; the dev page is unminified, so it looked right locally. The bracket now scales about its own centre, and a check refuses rules that mix those properties with transform.

Production today and with the fix

Evidence and limits

Proves the change: on css.earth, Chromium and WebKit measure the bracket at −8, −8 px from Earth; with the new rules injected, minified and unminified, 0, 0 at rest, hovered, desktop and phone.

Clean: site/test/prepared-world-context.test.ts, marker-presentation.test.ts, css-transform-longhands.test.mts, ownership and no-hash checks.

@alowpoly
alowpoly enabled auto-merge September 30, 2026 22:05
@alowpoly
alowpoly merged commit a297bab into main Sep 30, 2026
12 checks 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