mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
Recompute viewport-dependent styles on viewport size change
Fixes #8754.
This commit is contained in:
parent
4df7975ed3
commit
25c1bce9f6
9 changed files with 71 additions and 57 deletions
|
@ -73,6 +73,9 @@ impl HTMLMetaElement {
|
|||
rules: vec![CSSRule::Viewport(translated_rule)],
|
||||
origin: Origin::Author,
|
||||
media: None,
|
||||
// Viewport constraints are always recomputed on resize; they don't need to
|
||||
// force all styles to be recomputed.
|
||||
dirty_on_viewport_size_change: false,
|
||||
}));
|
||||
let doc = document_from_node(self);
|
||||
doc.invalidate_stylesheets();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue