mirror of
https://github.com/servo/servo.git
synced 2025-06-06 00:25:37 +00:00
Process viewport attribute.
Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
This commit is contained in:
parent
b422a65a00
commit
15d860c05c
1 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,9 @@ impl HTMLMetaElement {
|
|||
if name == "referrer" {
|
||||
self.apply_referrer();
|
||||
}
|
||||
if name == "viewport" {
|
||||
self.parse_viewport();
|
||||
}
|
||||
// https://html.spec.whatwg.org/multipage/#attr-meta-http-equiv
|
||||
} else if !self.HttpEquiv().is_empty() {
|
||||
// TODO: Implement additional http-equiv candidates
|
||||
|
@ -115,6 +118,11 @@ impl HTMLMetaElement {
|
|||
}
|
||||
}
|
||||
|
||||
/// <https://drafts.csswg.org/css-viewport/#parsing-algorithm>
|
||||
fn parse_viewport(&self) {
|
||||
let _element = self.upcast::<Element>();
|
||||
}
|
||||
|
||||
/// <https://html.spec.whatwg.org/multipage/#attr-meta-http-equiv-content-security-policy>
|
||||
fn apply_csp_list(&self) {
|
||||
if let Some(parent) = self.upcast::<Node>().GetParentElement() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue