mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:07:36 +00:00
LibWeb: Respect media attribute of style tag
This commit is contained in:
parent
bd4bb4fd51
commit
93238edf8f
7 changed files with 44 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue