I’m trying to create a userstyle (installed in Google Chrome as a userscript).
It’s just some CSS to hide everything on the page and only show an image.
html { height:100%;
background:url(https://i.stack.imgur.com/1xZIO.png) no-repeat center fixed #FFFFFF !important;
overflow:hidden;
}
*:not(html) { display:none; }
I’d say there’s something wrong with my understanding of CSS here, but this works in Mozilla Firefox (pasted this code in userContent.css and it behaves as expected).
Also tried body instead of html, visibility:collapse; instead of display:none; and more specific :not selectors.
Here is how userstyles.org makes this CSS into a userscript
Please explain what’s up here! Many thanks!
the following code works fine on my chrome. I removed your @namespace line and applied styles on the html element.