gerard.vermeu...@posteo.net writes: > On 07.06.2023 19:57, Ihor Radchenko wrote: > [...] > I understand why you prefer the <img> tag over the <object> tag. > >> Finally, I can see that there are ways to use CSS on img+svg: >> https://blog.union.io/code/2017/08/10/img-svg-fill/ > > I failed to make the flower example work with the information on this > site.
I am not expert in html. Maybe someone else (Timothy?) can chime in. That said, I do not see why we cannot offer <object> strategy as an option regardless whether is can solve the problem with CSS. > ;; For each SVG image during HTML export: > ;; 1. It checks `svg-as-object' and "image in-lining" whether to > ;; embed the SVG image in an <object> tag. > ;; 2. If not, it checks `svg-inclusion' and "image in-lining" > ;; whether to copy the SVG contents to the HTML output. > ;; 3. If not, it falls back to checking "image in-lining" whether to > ;; embed the SVG image in an <img> tag (as any other image type). > ;; 4. It is possible to set `svg-as-object' and/or `svg-inclusion': > ;; - For each SVG link by means of "#+ATTR_HTML: :svg-as-object t" > ;; or "#+ATTR_HTML: :svg-inclusion t". > ;; - Within file scope by means of "#+OPTIONS: svg-as-object:t" or > ;; "#+OPTIONS: svg-inclusion:t". > ;; - Within toplevel scope by means of the options > ;; `org-html-svg-as-object' or `org-html-svg-inclusion'. I think you missed `org-html-inline-image-rules' where users can include/exclude svg images from inlining. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>