Repository navigation
[popups] Snap --anchor-width/height to device pixel grid - #4082
Merged
flaviendelangle merged 3 commits intoFeb 13, 2026
Merged
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
flaviendelangle
marked this pull request as ready for review
February 13, 2026 08:56
flaviendelangle
requested review from
atomiks,
colmtuite and
michaldudak
as code owners
February 13, 2026 08:56
atomiks
reviewed
Feb 13, 2026
Contributor
Greptile OverviewGreptile SummaryFixed a visual bug where a small black rectangle would flicker at the top right of the floating container when the anchor element had fractional pixel dimensions. The fix snaps anchor dimensions to device pixels before setting CSS custom properties ( The implementation correctly handles device pixel ratio by:
This prevents sub-pixel rendering artifacts that occurred when the anchor element's dimensions were between physical pixels. Confidence Score: 5/5
Important Files Changed
Last reviewed commit: a734ee2 |
--anchor-width/height to device pixel grid
atomiks
approved these changes
Feb 13, 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.
Closes #4061
The issue was the small black rectangle that flickers at the top right of the floating container.
Before
Screencast.2026-02-13.09.54.01.mp4
After
Screencast.2026-02-13.09.54.18.mp4