You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When placing a hoisted dropdown inside an element with container-type set to size or inline-size, the position of the menu is incorrectly calculated. Setting the property to normal or removing entirely fixes the issue.
This issue does not occur in Firefox or Safari. Can use the demo in the codepen provided below for verification.
To Reproduce
Add a hoisted dropdown to an element that has container-type: size or container-type: inline-size.
Demo
I've reproduced it in codepen, featuring a broken version with container-type set to inline-size and another one inside that's working set to container-type: normal. https://codepen.io/BuddyLReno/pen/eYqYaGY?editors=1100
Screenshots
Browser / OS
OS: Mac and Windows
Browser: Chrome
Browser version: 129
Additional information
Verified on my windows machine the issue was not occurring on Chrome 128, updated to 129 and the issue began occurring with the same codepen.
The text was updated successfully, but these errors were encountered:
We also ran into this issue in our "fork" of Shoelace, Synergy. A quick fix is setting positon: relative; z-index: 1 on the element that is acting as the container. See synergy-design-system/synergy-design-system#612 for another reference.
Yea this isn't a stacking context issue, this is a boundary calculation issue most likely from floating UI; I'm gonna try today to upgrade floating UI today if that doesn't work, I'll try to make a minimal repro for floating UI
Describe the bug
When placing a hoisted dropdown inside an element with
container-type
set tosize
orinline-size
, the position of the menu is incorrectly calculated. Setting the property tonormal
or removing entirely fixes the issue.This specifically started in Chrome 129, possibly due to changes that were rolled out affecting CSS positioning and size calculations: https://developer.chrome.com/release-notes/129#css
This issue does not occur in Firefox or Safari. Can use the demo in the codepen provided below for verification.
To Reproduce
Add a hoisted dropdown to an element that has
container-type: size
orcontainer-type: inline-size
.Demo
I've reproduced it in codepen, featuring a broken version with
container-type
set toinline-size
and another one inside that's working set tocontainer-type: normal
.https://codepen.io/BuddyLReno/pen/eYqYaGY?editors=1100
Screenshots
Browser / OS
Additional information
Verified on my windows machine the issue was not occurring on Chrome 128, updated to 129 and the issue began occurring with the same codepen.
The text was updated successfully, but these errors were encountered: