\`color-scheme` noch nicht richtig implementiert?
bearbeitet vonMit `html { color-scheme: light dark }`{:.language-css} erlaube ich die Umschaltung zwischen Hell- und Dunkelmodus.
Eine Komponente (in [meinem Fall](https://codepen.io/gunnarbittersmann/pen/MYeQwGe?editors=0100) eine mit einem Bild und Bildnachweis) soll aber immer im Hellmodus (d.h. dunkle Schrift) bleiben: `figure { color-scheme: only light }`{:.language-css}. Davon völlig unbeeindruckt wird die Schrift des Bildnachweises aber beim Wechsel in den Dunkelmodus (für die Seite!) hell.
Die Spec sieht das aber unter [2.1. Opting Into a Preferred Color Scheme: the `color-scheme` property](https://www.w3.org/TR/css-color-adjust-1/#color-scheme-prop) in [Beispiel 3](https://www.w3.org/TR/css-color-adjust-1/#example-e9ce7c7e) so vor.
Übersehe ich da was oder haben Browser (das betrifft sowohl Firefox als auch Safari als auch Chromia) das noch nicht richtig implementiert?
🖖 Live long and prosper
{:@en}
--
*“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”*{:@en}
— Bruce Springsteen, Manchester 2025-05-14
`color-scheme` noch nicht richtig implementiert?
bearbeitet vonMit `html { color-scheme: light dark }`{:.language-css} erlaube ich die Umschaltung zwischen Hell- und Dunkelmodus.
Eine Komponente (in [meinem Fall](https://codepen.io/gunnarbittersmann/pen/MYeQwGe?editors=0100) eine mit einem Bild und Bildnachweis) soll aber immer im Hellmodus (d.h. dunkle Schrift) bleiben: `figure { color-scheme: only light }`{:.language-css}. Davon völlig unbeeindruckt wird die Schrift des Bildnachweises aber beim Wechsel in den Dunkelmodus (für die Seite!) hell.
Die Spec sieht das aber unter [2.1. Opting Into a Preferred Color Scheme: the `color-scheme` property](https://www.w3.org/TR/css-color-adjust-1/#color-scheme-prop) in [Beispiel 3](https://www.w3.org/TR/css-color-adjust-1/#example-e9ce7c7e) so vor.
Übersehe ich da was oder haben Browser (das betrifft sowohl Firefox als auch Safari als auch Chromia) das noch nicht richtig implementiert?
🖖 Live long and prosper
{:@en}
--
*“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”*{:@en}
— Bruce Springsteen, Manchester 2025-05-14
`color-scheme` noch nicht richtig implementiert?
bearbeitet vonMit `html { color-scheme: light dark }`{:.language-css} erlaube ich die Umschaltung zwischen Hell- und Dunkelmodus.
Eine Komponente (in meinem Fall eine mit einem Bild und Bildnachweis) soll aber immer im Hellmodus (d.h. dunkle Schrift) bleiben: `figure { color-scheme: only light }`{:.language-css}. Davon völlig unbeeindruckt wird die Schrift des Bildnachweises aber beim Wechsel in den Dunkelmodus (für die Seite!) hell.
Die Spec sieht das aber unter [2.1. Opting Into a Preferred Color Scheme: the `color-scheme` property](https://www.w3.org/TR/css-color-adjust-1/#color-scheme-prop) in [Beispiel 3](https://www.w3.org/TR/css-color-adjust-1/#example-e9ce7c7e) so vor.
Übersehe ich da was oder haben Browser (das betrifft sowohl Firefox als auch Safari als auch Chromia) das noch nicht richtig implementiert?
🖖 Live long and prosper
{:@en}
--
*“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”*{:@en}
— Bruce Springsteen, Manchester 2025-05-14