Repository navigation
Studio: unbreak the frontend suite and the icon alignment check - #10413
Merged
Merged
Conversation
smoke-composer-icons.html was added without the /crypto-boot.js tag every other HTML entry carries, and tests/crypto-uuid-boot.test.ts enumerates the entries rather than a list, so main's own frontend suite has been one test red since it landed. That failure surfaces on every open frontend PR.
|
You have reached your Codex usage limits for security reviews. Please try again later. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The composer icon alignment check fails on firefox at every zoom other than 1, on Linux as well as Windows, reporting a glyph centre 1.38px out on an icon whose svg box it measures as perfectly centred. The icons are fine; the measurement is not. Firefox leaves CSS zoom out of getScreenCTM() while getBoundingClientRect() applies it, so at zoom 0.8 the CTM scale comes back as 0.5747 where the rendered box gives 0.4597, and the mapped glyph centre lands 1/zoom out. Chromium reports 0.4596 for the same icon. Scale from the rendered box and the viewBox instead, which needs no CTM. 216 configurations on each of chromium, firefox and webkit now pass, 3888 icons. The check still bites: injecting a 2px glyph shift inside an unmoved svg box is caught on both engines, at 0.91px against the 0.02px tolerance.
|
You have reached your Codex usage limits for security reviews. Please try again later. |
This was referenced Sep 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Frontend CI has been red on
mainsince #10407 landed (runs 34071451180 and 34074738138, both jobs failing). Two independent breaks from that PR, the first of which was masking the second.1. The smoke page has no crypto polyfill.
smoke-composer-icons.htmlis the one HTML entry without the/crypto-boot.jstag, andtests/crypto-uuid-boot.test.tsenumerates*.htmlrather than a fixed list:Reproduced on a clean checkout of
main. One tag, where the other entries put it.npm testgoes 6933 pass / 1 fail to 6934 pass / 0 fail.2. The alignment check measures the glyph centre wrongly on firefox. Only visible once the first fix lets the job reach that step. It reports
chat-send1.38px out on an icon whose svg box it measures as perfectly centred, at every zoom except 1, on Linux as well as Windows:The icons are fine; the measurement is not. Firefox leaves CSS
zoomout ofgetScreenCTM()whilegetBoundingClientRect()applies it, so atzoom: 0.8the CTM scale comes back as 0.5747 where the rendered box gives 0.4597 (chromium reports 0.4596 for the same icon), and the mapped centre lands1/zoomout. Mapping with the correct scale puts the glyph centre at 44.9997 against a button centre of 45.0.Scaling from the rendered box and the viewBox needs no CTM and is engine independent. 216 configurations on each of chromium, firefox and webkit now pass, 3888 icons.
The check still bites, which I verified rather than assumed: injecting a 2px glyph shift inside an unmoved svg box is caught on both engines at 0.91px against the 0.02px tolerance.
Opened while reviewing #10262, whose only red check is this one.