Post AwyJ8mma4PkP4jv0oS by [email protected] | |
More posts by [email protected] | |
Post #AwyJ8mma4PkP4jv0oS by [email protected] | |
0 likes, 0 repeats | |
How frustrating: <foreignObject> in #SVG in #HTML inherits the parent'… | |
Post #AwyJ8mvRXSpvWE45cu by [email protected] | |
0 likes, 0 repeats | |
@sir_pepe seems to work fine? https://chrisruppel.com/blog/picture-prefers-colo… | |
Post #AwyJ8n2B8QDxr7DT7o by [email protected] | |
0 likes, 0 repeats | |
@koos I don't follow. The example does not use color-scheme, SVG, or <fo… | |
Post #AwyJ8n7UoeTg7bhiPg by [email protected] | |
0 likes, 0 repeats | |
@sir_pepe ah okay, your toot was about <picture> inside <foreignObject… | |
Post #AwyJ8nluOOnu8wbzP6 by [email protected] | |
0 likes, 0 repeats | |
Oh, it DOES work when the SVG is not embedded in the document! Only remaining p… | |
Post #AwyJ8orGLygHVq7mO8 by [email protected] | |
0 likes, 0 repeats | |
... but not if you use <object> apparently! There it is, <picture> … | |
Post #AwyJ8ppWjut2WkJuK0 by [email protected] | |
0 likes, 0 repeats | |
Demo: https://codepen.io/SirPepe/pen/XJmgYZP?editors=1100(the image CDN is a ta… | |
Post #AwyJ8qtolRufqLKqeG by [email protected] | |
0 likes, 0 repeats | |
Turns out this does not work in Safari, which does not respect color-scheme inh… |