mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibWeb: Actually query the orientation
I made a typo and was checking for "hover" twice.
This commit is contained in:
parent
114a7b357b
commit
09262e3b77
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ Optional<CSS::MediaFeatureValue> Window::query_media_feature(FlyString const& na
|
|||
return CSS::MediaFeatureValue("hover");
|
||||
if (name.equals_ignoring_case("monochrome"sv))
|
||||
return CSS::MediaFeatureValue(0);
|
||||
if (name.equals_ignoring_case("hover"sv))
|
||||
if (name.equals_ignoring_case("orientation"sv))
|
||||
return CSS::MediaFeatureValue(inner_height() >= inner_width() ? "portrait" : "landscape");
|
||||
if (name.equals_ignoring_case("overflow-block"sv))
|
||||
return CSS::MediaFeatureValue("scroll");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue