1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:27:44 +00:00

LibWeb: Implement window.matchMedia()

This commit is contained in:
Linus Groh 2021-09-12 17:10:27 +01:00 committed by Andreas Kling
parent 4155cc7ed5
commit 51da5d03da
4 changed files with 21 additions and 0 deletions

View file

@ -195,4 +195,9 @@ NonnullRefPtr<CSS::CSSStyleDeclaration> Window::get_computed_style(DOM::Element&
return CSS::CSSStyleDeclaration::create(move(properties), move(custom_properties));
}
NonnullRefPtr<CSS::MediaQueryList> Window::match_media(String media)
{
return CSS::MediaQueryList::create(associated_document(), move(media));
}
}