Can PDF exporting respect conditional image .css?

Things I have tried

putting the .css code inside “@media print {}”

forum trawling

What I’m trying to do

I invert image colors with .css from the minimal theme, this is conditional on a tag #invert in the image link

is it possible to have PDF exports include the .css style for images that are tagged
currently the exported PDF ignores images with a tag, leaving a blank space in their place

here is the .css snippet that inverts image colours for e.g. [[image.png#invert]]

div[src$="#invert"] img,
span[src$="#invert"] img {
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen; }

div[src$="#invert"] {
  background-color: var(--background-primary); }

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.