I've been searching for an answer without much luck. Is it possible to transfer variables from HTML to CSS, maybe using data attributes?
I want to display different backgrounds based on vendors using media queries on brand pages. I know inline CSS doesn't support media queries and creating numerous media queries in my stylesheet isn't ideal.
I have access to the vendor background URL object on my HTML page. It would be ideal if I could pass this information to a single CSS media query without utilizing JavaScript.