Issue #2837 - Implement prefers-reduced-motion media query.

Resolves #2837
This commit is contained in:
Moonchild 2025-08-08 10:59:59 +02:00 • committed by roytam1
commit df3b213459
5 changed files with 47 additions and 6 deletions

View file

@ -1265,8 +1265,12 @@ enum class StyleDisplay : uint8_t {
#define NS_STYLE_DISPLAY_MODE_FULLSCREEN 3
// prefers-color-scheme
#define NS_STYLE_PREFERS_COLOR_SCHEME_LIGHT 0
#define NS_STYLE_PREFERS_COLOR_SCHEME_DARK 1
#define NS_STYLE_PREFERS_COLOR_SCHEME_LIGHT 0
#define NS_STYLE_PREFERS_COLOR_SCHEME_DARK 1
// prefers-reduced-motion
#define NS_STYLE_PREFERS_FULL_MOTION 0
#define NS_STYLE_PREFERS_REDUCED_MOTION 1
} // namespace mozilla