ladybird/Userland/Libraries/LibWeb/CSS/MediaFeatures.json
Sam Atkins aa48dda3a4 LibWeb: Add missing MEDIAQUERIES-5 media-features
This adds (or at least stubs-out) the following:
- display-mode
- dynamic-range
- environment-blending
- forced-colors
- horizontal-viewport-segments
- vertical-viewport-segments
- inverted-colors
- nav-controls
- prefers-contrast
- prefers-reduced-data
- prefers-reduced-motion
- prefers-reduced-transparency
- scripting
- video-color-gamut
- video-dynamic-range

The `@media (inverted-colors)` CSS that the spec requires we add to the
UA style sheet does not actually do anything for us yet since we don't
support `filter`, but it seemed sensible to include it now to avoid
forgetting later. :^)
2022-03-16 22:07:53 +01:00

261 lines
4.8 KiB
JSON

{
"any-hover": {
"type": "discrete",
"values": [
"none",
"hover"
]
},
"any-pointer": {
"type": "discrete",
"values": [
"none",
"coarse",
"fine"
]
},
"aspect-ratio": {
"type": "range",
"values": [
"<ratio>"
]
},
"color": {
"type": "range",
"values": [
"<integer>"
]
},
"color-gamut": {
"type": "discrete",
"values": [
"srgb",
"p3",
"rec2020"
]
},
"color-index": {
"type": "range",
"values": [
"<integer>"
]
},
"device-aspect-ratio": {
"type": "range",
"values": [
"<ratio>"
]
},
"device-height": {
"type": "range",
"values": [
"<length>"
]
},
"device-width": {
"type": "range",
"values": [
"<length>"
]
},
"display-mode": {
"type": "discrete",
"values": [
"fullscreen",
"standalone",
"minimal-ui",
"browser"
]
},
"dynamic-range": {
"type": "discrete",
"values": [
"standard",
"high"
]
},
"environment-blending": {
"type": "discrete",
"values": [
"opaque",
"additive",
"subtractive"
]
},
"forced-colors": {
"type": "discrete",
"values": [
"none",
"active"
]
},
"grid": {
"type": "discrete",
"values": [
"<mq-boolean>"
]
},
"height": {
"type": "range",
"values": [
"<length>"
]
},
"horizontal-viewport-segments": {
"type": "range",
"values": [
"<integer>"
]
},
"hover": {
"type": "discrete",
"values": [
"none",
"hover"
]
},
"inverted-colors": {
"type": "discrete",
"values": [
"none",
"inverted"
]
},
"monochrome": {
"type": "range",
"values": [
"<integer>"
]
},
"nav-controls": {
"type": "discrete",
"values": [
"none",
"back"
]
},
"orientation": {
"type": "discrete",
"values": [
"portrait",
"landscape"
]
},
"overflow-block": {
"type": "discrete",
"values": [
"none",
"scroll",
"paged"
]
},
"overflow-inline": {
"type": "discrete",
"values": [
"none",
"scroll"
]
},
"pointer": {
"type": "discrete",
"values": [
"none",
"coarse",
"fine"
]
},
"prefers-color-scheme": {
"type": "discrete",
"values": [
"light",
"dark"
]
},
"prefers-contrast": {
"type": "discrete",
"values": [
"no-preference",
"less",
"more",
"custom"
]
},
"prefers-reduced-data": {
"type": "discrete",
"values": [
"no-preference",
"reduce"
]
},
"prefers-reduced-motion": {
"type": "discrete",
"values": [
"no-preference",
"reduce"
]
},
"prefers-reduced-transparency": {
"type": "discrete",
"values": [
"no-preference",
"reduce"
]
},
"resolution": {
"type": "range",
"values": [
"<resolution>",
"infinite"
]
},
"scan": {
"type": "discrete",
"values": [
"interlace",
"progressive"
]
},
"scripting": {
"type": "discrete",
"values": [
"none",
"initial-only",
"enabled"
]
},
"update": {
"type": "discrete",
"values": [
"none",
"slow",
"fast"
]
},
"vertical-viewport-segments": {
"type": "range",
"values": [
"<integer>"
]
},
"video-color-gamut": {
"type": "discrete",
"values": [
"srgb",
"p3",
"rec2020"
]
},
"video-dynamic-range": {
"type": "discrete",
"values": [
"standard",
"high"
]
},
"width": {
"type": "range",
"values": [
"<length>"
]
}
}