1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:27:34 +00:00

LibWeb: Respect media attribute of style tag

This commit is contained in:
Aliaksandr Kalenik 2022-10-23 21:05:34 +03:00 committed by Sam Atkins
parent bd4bb4fd51
commit 93238edf8f
7 changed files with 44 additions and 15 deletions

View file

@ -85,6 +85,10 @@ bool MediaList::evaluate(HTML::Window const& window)
bool MediaList::matches() const
{
if (m_media.is_empty()) {
return true;
}
for (auto& media : m_media) {
if (media.matches())
return true;