mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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
Notes:
sideshowbarker
2024-07-17 18:19:40 +09:00
Author: https://github.com/AtkinsSJ
Commit: 09262e3b77
Pull-request: https://github.com/SerenityOS/serenity/pull/12727
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