MDN self-hosted library · e01.org

`:xr-overlay` CSS pseudo-class

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
:xr-overlay {
  /* ... */
}
css
:xr-overlay {
  background-color: rgb(0 0 0 / 0.5);
  color: white;
}
css
:xr-overlay button {
  background-color: white;
  color: black;
}