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:
parent
4155cc7ed5
commit
51da5d03da
4 changed files with 21 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue