README <picture> theme selection follows OS appearance instead of GitHub theme #210983
Replies: 4 comments 1 reply
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
This behavior is not a bug in GitHub's Markdown parser, but rather the fundamental web standard design of HTML5 Here is why it happens and the official GitHub mechanism to make images follow GitHub's theme toggle: Why
|
|
f I want to talking about something again |
|
f I want to talking about something again |
This behavior is not a bug in GitHub's Markdown parser, but rather the fundamental web standard design of HTML5
<picture>tags and browser media queries.Here is why it happens and the official GitHub mechanism to make images follow GitHub's theme toggle:
Why
<picture media=\"(prefers-color-scheme: ...)\">Follows the OS<picture>element and itsmediaattribute are evaluated natively by the browser rendering engine, completely outside of GitHub's DOM and CSS classes.prefers-color-schemeCSS media query strictly inspects the host operating system's theme (viawindow.matchMedia).