mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:37:47 +00:00
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. :^)
This commit is contained in:
parent
84a06a1209
commit
aa48dda3a4
3 changed files with 166 additions and 11 deletions
|
@ -306,3 +306,13 @@ mark {
|
|||
* https://html.spec.whatwg.org/multipage/rendering.html#embedded-content-rendering-rules
|
||||
*/
|
||||
iframe { border: 2px inset; }
|
||||
|
||||
/* https://www.w3.org/TR/mediaqueries-5/#descdef-media-inverted-colors
|
||||
*/
|
||||
@media (inverted-colors) {
|
||||
img:not(picture>img),
|
||||
picture,
|
||||
video {
|
||||
filter: invert(100%);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue