Skip to content
Discussion options

You must be logged in to vote

We intentionally isolate the main content stacking context using isolation: isolate to prevent it ever displaying above the navgation bar, sidebar, etc:

.main-pane {
isolation: isolate;
}

This avoids that broken looking thing where some content suddenly scrolls above the site UI because of z-index values.

I think for something that can be full screen I would do one of the following:

  • Use the actual Fullscreen API to request an element fills up the entire screen.
  • Use a <dialog> element which pops up and covers the full screen. This would use the “top layer” and not be subjec…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Its-Just-Nans
Comment options

@delucis
Comment options

Answer selected by Its-Just-Nans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants