You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any stylesheet could, in theory, change the computed value of color-scheme.
The color-scheme could even be defined dynamically!
When the theme changes, new stylesheets are loaded asynchronously.
When a LINK element’s href attribute is changed, it does not emit a load event.
It would be possible to detect when the (Framework-specified) stylesheet changes, and force the replacement of LINK elements rather than updating the href attribute, and then listen for load events on the added stylesheets (and check the removed ones), and finally re-evaluate the dark built-in. But it’s a bit of work, and still imperfect. Maybe this is just an acceptable bug as-is.
Fil
added a commit
that referenced
this issue
Sep 4, 2024
E.g., editing the front matter from
to
doesn’t change the value of
dark
until reload.The text was updated successfully, but these errors were encountered: