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
I found if used as a child element within an (emulated using display: none) <details> that it is never detected that the grid is displayed, seemingly because such attribute changes are not being observed.
From what I can tell this is because it inserted id's and CSS rules forcing a size of zero already, and so when displayed its still zero and no update :(
One possibility I found is to also check for offsetParent. In simple cases it will be null if not displayed, but its also null if the element itself is positioned: fixed at which point I am not sure.
I found if used as a child element within an (emulated using
display: none
)<details>
that it is never detected that the grid is displayed, seemingly because such attribute changes are not being observed.From what I can tell this is because it inserted id's and CSS rules forcing a size of zero already, and so when displayed its still zero and no update :(
One possibility I found is to also check for
offsetParent
. In simple cases it will benull
if not displayed, but its alsonull
if the element itself ispositioned: fixed
at which point I am not sure.css-grid/polyfill.js#L95
The text was updated successfully, but these errors were encountered: