mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
LibWeb: Evaluate @media
rules
We now evaluate the conditions of `@media` rules at the same point in the HTML event loop as evaluation of `MediaQueryList`s. This is not strictly to spec, but since the spec doesn't actually say when to do this, it seems to make the most sense. In any case, it works! :^)
This commit is contained in:
parent
57a25139a5
commit
5098cd22a4
Notes:
sideshowbarker
2024-07-18 02:54:51 +09:00
Author: https://github.com/AtkinsSJ
Commit: 5098cd22a4
Pull-request: https://github.com/SerenityOS/serenity/pull/10400
Reviewed-by: https://github.com/Lubrsi
8 changed files with 47 additions and 2 deletions
|
@ -46,6 +46,7 @@ public:
|
|||
|
||||
void for_each_effective_style_rule(Function<void(CSSStyleRule const&)> const& callback) const;
|
||||
bool for_first_not_loaded_import_rule(Function<void(CSSImportRule&)> const& callback);
|
||||
void evaluate_media_queries(DOM::Window const&);
|
||||
|
||||
private:
|
||||
explicit CSSStyleSheet(NonnullRefPtrVector<CSSRule>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue