mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 15:07:45 +00:00
LibWeb: Add MediaFeatures.json file, and associated identifiers
This data will be used to generate code for parsing media-queries. So far, it includes all MEDIAQUERIES-4 features, and `prefers-color-scheme` from MEDIAQUERIES-5 since we support that.
This commit is contained in:
parent
096e44285a
commit
f5fe75f12c
2 changed files with 175 additions and 8 deletions
151
Userland/Libraries/LibWeb/CSS/MediaFeatures.json
Normal file
151
Userland/Libraries/LibWeb/CSS/MediaFeatures.json
Normal file
|
@ -0,0 +1,151 @@
|
|||
{
|
||||
"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>"
|
||||
]
|
||||
},
|
||||
"grid": {
|
||||
"type": "discrete",
|
||||
"values": [
|
||||
"<mq-boolean>"
|
||||
]
|
||||
},
|
||||
"height": {
|
||||
"type": "range",
|
||||
"values": [
|
||||
"<length>"
|
||||
]
|
||||
},
|
||||
"hover": {
|
||||
"type": "discrete",
|
||||
"values": [
|
||||
"none",
|
||||
"hover"
|
||||
]
|
||||
},
|
||||
"monochrome": {
|
||||
"type": "range",
|
||||
"values": [
|
||||
"<integer>"
|
||||
]
|
||||
},
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"resolution": {
|
||||
"type": "range",
|
||||
"values": [
|
||||
"<resolution>",
|
||||
"infinite"
|
||||
]
|
||||
},
|
||||
"scan": {
|
||||
"type": "discrete",
|
||||
"values": [
|
||||
"interlace",
|
||||
"progressive"
|
||||
]
|
||||
},
|
||||
"update": {
|
||||
"type": "discrete",
|
||||
"values": [
|
||||
"none",
|
||||
"slow",
|
||||
"fast"
|
||||
]
|
||||
},
|
||||
"width": {
|
||||
"type": "range",
|
||||
"values": [
|
||||
"<length>"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue