2 comments

  • ayaros66 days ago
    I&#x27;ve used embedded SVG images in CSS encoded as base64, and I&#x27;m not ashamed. In general, I really wish I could apply page styles and CSS3 variables to the internal CSS of SVG files. I&#x27;m sure there&#x27;s a good reason why this context isn&#x27;t shared, but it would be cool and useful to dynamically change the style of SVG files.<p>If I&#x27;m hand coding a page or writing a stylesheet, it&#x27;s convenient to be able to embed things. Often, I&#x27;ll embed a style tag until it grows large enough to be worthy of its own file. The same goes for scripts; it&#x27;s useful to have the option if you&#x27;re quickly prototyping something.
    • beezlewax66 days ago
      You CAN target ids in svgs though? And apply fill etc by css
      • ayaros65 days ago
        Not in all situations. I&#x27;m pretty sure I can&#x27;t do it when the SVG file is applied as a background image.
        • 171862744064 days ago
          Yeah of course, you must embed it as content. So use &lt;object&gt; or &lt;svg&gt; directly.
  • qingcharles66 days ago
    I don&#x27;t know if I remember seeing this site before -- it appears to be an advent calendar of web performance tips? Good stuff.
    • ssttoo65 days ago
      Yup, it’s web performance advent calendar in its 17th edition. I’m the maintainer, AMA. Also still accepting contributions for this year.