mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8716] [MERGED] fix(client): stop Chromium dropping Mari rules lowered to :lang() lists #8762
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8762
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8716
Author: @SpicyMarinara
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/8709-css-lang-selectors📝 Commits (2)
41ba7eafix(client): stop Chromium dropping Mari rules lowered to :lang() listsf3d4796fix(client): let rtl:/ltr: variants build and flip Mari's narrow sprite gap📊 Changes
7 files changed (+186 additions, -11 deletions)
View changed files
📝
packages/client/.instructions.md(+1 -0)📝
packages/client/scripts/build-multiplayer-guest.mjs(+2 -1)➕
packages/client/scripts/css-lang-selectors.mjs(+59 -0)📝
packages/client/src/styles/globals.css(+3 -1)📝
packages/client/src/styles/mari.css(+33 -9)📝
packages/client/vite.config.ts(+4 -0)➕
scripts/regressions/client-css-lang-selectors.regression.mjs(+84 -0)📄 Description
Linked issue
Closes #8709
Why this change
build.cssTarget: "safari14"makes Lightning CSS fake the logical properties Safari 14.0 lacks:inset-inline-*and the logical corner radii. It does this with:lang(ae,ar,…)selector lists, and Chromium rejects a comma list inside:lang(), so it silently dropped all nine of those rules. The most visible one: Prof. Mari's reply sprite lost its-3.75remoffset and covered the first paragraph of her reply.What changed
cssTargetstays at safari14. The built CSS's 18:lang()lists came from 7 source declarations inmari.cssandglobals.css, the ones the issue names. Each now uses physical sides:leftplus a:where([dir="rtl"])flip toright.i18n.tssetsdiron<html>, and:where()adds no specificity, so container-query layout rules still win.right: 0, because code blocks renderdir="ltr".margin-block/margin-inline, so its gap stays on the text side in right-to-left locales. Before, the gap fell on the outer side and the text touched her.cssLangSelectorGuard(packages/client/scripts/css-lang-selectors.mjs), follows the existingbundleBudgetpattern.:lang()comma list in a position Chromium drops: top level,:not(),:has().:where()/:is(), which Chromium keeps. That is what Tailwind'srtl:/ltr:variants produce.pnpm checkand CI enforce it.packages/client/.instructions.mdgets a one-line note on which declarations to avoid.Validation
pnpm checkpasses locallyCONTRIBUTING.mdWhat the agent ran:
pnpm checkpasses (exit 0), including the full build.:lang()lists.staging's CSS restored, the real build fails and the guard names every offending selector.scripts/regressions/client-css-lang-selectors.regression.mjsruns real Lightning CSS at a Safari 14 target. It covers the issue's declaration, Tailwindrtl:/ltr:shapes (allowed),:not()/:has()lists (rejected) and the narrow sprite margin. A mutation check shows it fails with the guard disabled.open-issues.regression.tsfailed on a turn-game prompt-logging check that this PR doesn't touch. #8710 has since repaired staging's node regressions.rtl:/ltr:false failure and the narrow-layout RTL gap). Both are fixed, and a second pass verified the fixes.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.