Custom attribute to ignore inlining · Issue #10 · Stranger6667/css-inline · GitH...
source link: https://github.com/Stranger6667/css-inline/issues/10
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Comments
No description provided.
This feature would be great. Here's a real world use case I found where this would be very useful:
I am Inlining the css of an html email. I have some elements (e.g. images) that I'd like to swap with @media (prefers-color-scheme: dark )
— I could inline most CSS for these images, but the display: block|none
to toggle display for default/dark mode will not work with inlined styles.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK