Comment on CSS Curiosities of the PastComments−sbarre1dSurprised there was no mention of the old system theme colours (that I think still work in some browsers but are long-deprecated):https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/V...I used these CSS styles in the late 90s to make internal browser-based apps for our call centre agents that looked & felt more like native Windows desktop apps.−robin_realaOP1dThey’re still there for use in forced colors mode. I blogged about this a bit at https://medium.com/flat-pack-tech/ikea-windows-high-contrast...−gaigalas1dThey exist but don't actually grab system colors (to prevent pages spoofing the system look).---Shameless plug:In neutrino (my webview wrapper), we grab those and inject them as prefixed CSS variables (--neutrino-NameOfSystemColor).Works on windows/macos/gtk/qt, and except for qt it works live (if the user changes the accent tone, the CSS variable updates automatically).https://alganet.dev/neutrino/ Screenshot of Mint: https://imgur.com/a/WyjpwsR−sbarre17hThat's an interesting point about preventing the spoofing of system prompts and windows..These were very handy in simpler times but I definitely see why we don't want them around these days.−gaigalas17hYeah, "Your anti-virus is outdated, click here to update" popups mimicking the OS were a real issue.That's also why many browsers also don't allow popups without an URL bar now.For some time, Internet Explorer even had chromeless popups (no OS decorations, title bar or anything). Absolutely nasty, you could draw anything.
Comments
Surprised there was no mention of the old system theme colours (that I think still work in some browsers but are long-deprecated):
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/V...
I used these CSS styles in the late 90s to make internal browser-based apps for our call centre agents that looked & felt more like native Windows desktop apps.
They’re still there for use in forced colors mode. I blogged about this a bit at https://medium.com/flat-pack-tech/ikea-windows-high-contrast...
They exist but don't actually grab system colors (to prevent pages spoofing the system look).
---
Shameless plug:
In neutrino (my webview wrapper), we grab those and inject them as prefixed CSS variables (--neutrino-NameOfSystemColor).
Works on windows/macos/gtk/qt, and except for qt it works live (if the user changes the accent tone, the CSS variable updates automatically).
https://alganet.dev/neutrino/ Screenshot of Mint: https://imgur.com/a/WyjpwsR
That's an interesting point about preventing the spoofing of system prompts and windows..
These were very handy in simpler times but I definitely see why we don't want them around these days.
Yeah, "Your anti-virus is outdated, click here to update" popups mimicking the OS were a real issue.
That's also why many browsers also don't allow popups without an URL bar now.
For some time, Internet Explorer even had chromeless popups (no OS decorations, title bar or anything). Absolutely nasty, you could draw anything.