mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8709] [Issue]: Prof. Mari's reply sprite covers the first paragraph (cssTarget safari14 emits :lang() lists Chromium drops) #8465
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#8465
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?
Originally created by @Xelvanis on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8709
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In the Prof. Mari chat, the little Mari sprite beside her newest reply sits on top of the reply's first paragraph instead of in the margin to its left. The cause is in the build:
cssTarget: "safari14"makes Lightning CSS rewrite logical properties into:lang(ae, ar, …)selector lists, which Chromium rejects, so the whole rule is dropped. Eight other Mari rules are lost the same way.Expected behavior
In a wide window, she hangs in the margin left of the reply column (
inset-inline-start: -3.75remon.mari-answer__sprite,packages/client/src/styles/mari.css). In a narrow one (@container mari-scroll (width < 52rem)), she floats and the text wraps around her.Actual behavior
In a wide window she is placed at
left: 0of the reply, covering the first lines of text. Dragging her works as designed (she springs back on release), but she springs back onto the text.Measured in the running app (Prof. Mari window, scroll container 1221px wide):
.mari-answerleft = 326px,.mari-answer__spriteleft = 326px, computedleft: 0px.Cause
packages/client/vite.config.tssetsbuild.cssTarget: "safari14". Safari 14.0 lacksinset-inline-start, so Lightning CSS (1.33.0, Vite 8.3.5's minifier) lowers it to:Chromium does not support a comma-separated list inside
:lang(). Checked in the page:document.querySelector('a:not(:lang(ae,ar))')throws,CSS.supports('selector(:lang(ae,ar))')isfalse, anda:lang(ar)alone is fine. So both rules are invalid and dropped, and only the unlowered part (position:absolute; top:-.6rem; bottom:0) applies.Lightning CSS run alone on
.a{position:absolute;inset-inline-start:-3.75rem}::lang(…)pair aboveinset-inline-start:-3.75remOther rules lost the same way
All nine
:lang(ae,ar,…)rules in the currentdist/assets/client-*.css:.mari-answer__sprite{left:-3.75rem}: this issue.mari-list__cols>.mari-list__item:nth-child(2n)::after{left:0}.mari-edit--menus>:first-childand>:first-child>.mari-rowtop corner radii (inherit).mari-edit--menus>:last-childand>:last-child>.mari-rowbottom corner radii (inherit).mari-omnibar-header-destinations button[data-destination=chats]::before{left:calc(-.25rem - .5px)}.mari-companion-resize::after{left:calc(50% - 1px)}.mari-message-content .mari-md-codeblock-lang{right:0}Possible fixes
left/right(and physical corner radii) in these nine spots. This works in every browser, including Safari 14, but those spots no longer flip for right-to-left languages. I found nothing in the client that setsdir="rtl".cssTargetso Lightning CSS stops lowering logical properties.inset-inline-*needs Safari 14.1, and logical corner radii (border-start-start-radiusetc.) need Safari 15. This drops older iOS devices, so it's a maintainer call.Whichever is chosen, a check that fails the build when the built CSS contains
:lang(with a comma list would stop this coming back.Steps to reproduce
cssTarget: "safari14") and open the app in a Chromium browser (Chrome, Edge, or the Windows app shell).Environment
stagingat34ad07a3b)%LOCALAPPDATA%\MarinaraEngine)Logs, screenshots, or video
No console errors. Invalid selectors are dropped without a warning.
Additional context
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: