From 138a0480fee8e6f0a338d85160aca49f14e245c9 Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Mon, 26 Sep 2016 02:41:09 -0600 Subject: Implement matchMedia and MediaQueryList Fixes #13376. --- components/script/script_thread.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'components/script/script_thread.rs') diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 73a3d1458d8..01b4e2881b9 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -2101,6 +2101,11 @@ impl ScriptThread { 0i32); uievent.upcast::().fire(window.upcast()); } + + // https://html.spec.whatwg.org/multipage/#event-loop-processing-model + // Step 7.7 - evaluate media queries and report changes + // Since we have resized, we need to re-evaluate MQLs + window.evaluate_media_queries_and_report_changes(); } /// Initiate a non-blocking fetch for a specified resource. Stores the InProgressLoad -- cgit v1.2.3