mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 07:07:49 +00:00
LibWeb: Correct "color" media-feature value
This is bits per color channel, not bits per pixel, so 32 was a little over-optimistic. :^)
This commit is contained in:
parent
24a98b888a
commit
e30bfabbca
Notes:
sideshowbarker
2024-07-17 17:50:05 +09:00
Author: https://github.com/AtkinsSJ
Commit: e30bfabbca
Pull-request: https://github.com/SerenityOS/serenity/pull/12914
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ Optional<CSS::MediaFeatureValue> Window::query_media_feature(FlyString const& na
|
|||
return CSS::MediaFeatureValue("fine");
|
||||
// FIXME: aspect-ratio
|
||||
if (name.equals_ignoring_case("color"sv))
|
||||
return CSS::MediaFeatureValue(32);
|
||||
return CSS::MediaFeatureValue(8);
|
||||
if (name.equals_ignoring_case("color-gamut"sv))
|
||||
return CSS::MediaFeatureValue("srgb");
|
||||
if (name.equals_ignoring_case("color-index"sv))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue