Feature: Support for `@media` conditional rules in selectors and CSS (e.g. `prefers-color-scheme`)
Hi, thank you for the project, Inkscape team!
Summary:
When selecting an object, "selectors and CSS" do not have a way to handle @media
queries.
Background: Media queries and conditional selectors
MDN on CSS @media
selector rules
W3C:
-
@media
conditional: CSS Conditional Level 3 - Media Queries: Level 3, Level 4, Level 5
Case: Color schemes
Color scheme related queries (spec), such as prefers-color-scheme
can be used to make SVGs present colors targeting the devices color scheme.
StackOverflow example of @media (prefers-color-scheme: dark) {}
in an SVG: https://stackoverflow.com/a/67190894/1396928
Version info
Last tested with Inkscape 1.2.1