summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-02-22 15:55:20 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-24 08:04:25 +0100
commit09262e3b77bfbf120a55f8eb198bcda618a296d3 (patch)
treee4296323825fc1cd34f19eacc87260b46441a692 /Userland/Libraries/LibWeb
parent114a7b357bdd5b9abaea77d7389b8482babe1285 (diff)
downloadserenity-09262e3b77bfbf120a55f8eb198bcda618a296d3.zip
LibWeb: Actually query the orientation
I made a typo and was checking for "hover" twice.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Window.cpp b/Userland/Libraries/LibWeb/DOM/Window.cpp
index abf429587a..9e24ff671c 100644
--- a/Userland/Libraries/LibWeb/DOM/Window.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Window.cpp
@@ -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");