> #outside {
> fill: black;
> }
> #inside {
> fill: red;
> }
> @media (prefers-color-scheme: dark) {
> #outside {
> fill: white;
> }
> #inside {
> fill: black;
> }
> }
>action / notebook
action
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
browser.action.onClicked.addListener(handleClick);