Skip to content

Not compatible with CSS Containers #218

@MattWilcox

Description

@MattWilcox

EDIT: I was wrong originally... the issue is only if a container is used on <body>

CSS Containers create a new stacking context; if body has a CSS Container set on it, the layout for the lightbox breaks and no content or navigation is visible.

e.g.,

<body>
  <main>
    lightbox stuff
  </main>
</body>
body {
  container: mainElement / inline-size;
}

Now it's all broken.

Not entirely sure there's a viable "fix" for this, as it's a knock on side-effect of CSS Containers (which I think is honestly a design flaw in the spec).

Anyway, I originally thought it was on ANY element, but it's just the body that's a problem, and tbh it's likely rare someone will set a container on the body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions