mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Make empty media query lists evaluate to true
This commit is contained in:
parent
30377e6e35
commit
16f2f6aa42
Notes:
github-actions[bot]
2024-10-07 13:51:56 +00:00
Author: https://github.com/Gingeh
Commit: 16f2f6aa42
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1611
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 55 additions and 9 deletions
15
Tests/LibWeb/Layout/input/media-query-empty.html
Normal file
15
Tests/LibWeb/Layout/input/media-query-empty.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<style>
|
||||
div { display: none; }
|
||||
@media {
|
||||
div.first { display: block; }
|
||||
}
|
||||
@media{
|
||||
div.second { display: block; }
|
||||
}
|
||||
@media ,, {
|
||||
div.invalid { display: block; }
|
||||
}
|
||||
</style>
|
||||
<div class="first">First</div>
|
||||
<div class="second">Second</div>
|
||||
<div class="invalid">Invalid</div>
|
Loading…
Add table
Add a link
Reference in a new issue