Skip to content

Commit

Permalink
Do not use size containment on the grid (adazzle#3262)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstepien authored Jun 17, 2023
1 parent ff0bcd5 commit 896b682
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/style/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ const root = css`
/* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context */
/* We set a stacking context so internal elements don't render on top of external elements. */
contain: strict;
/* size containment is not used as it could break "width: min-content" for example, and the grid would infinitely resize on Chromium browsers */
contain: content;
content-visibility: auto;
block-size: 350px;
border: 1px solid var(--rdg-border-color);
Expand Down

0 comments on commit 896b682

Please sign in to comment.