aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorJack Moffitt <jack@metajack.im>2016-09-26 02:41:09 -0600
committerJack Moffitt <jack@metajack.im>2016-11-02 13:40:22 -0600
commit138a0480fee8e6f0a338d85160aca49f14e245c9 (patch)
tree3a1fd2588c8431859e010a31172d04dda809618b /components/script/script_thread.rs
parent99ad3678fa6490b83d209fd1648d49f074bb8c16 (diff)
downloadservo-138a0480fee8e6f0a338d85160aca49f14e245c9.tar.gz
servo-138a0480fee8e6f0a338d85160aca49f14e245c9.zip
Implement matchMedia and MediaQueryList
Fixes #13376.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs5
1 files changed, 5 insertions, 0 deletions
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::<Event>().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