Process viewport attribute.

Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
This commit is contained in:
Shubham Gupta 2025-03-11 11:03:47 +08:00
parent b422a65a00
commit 15d860c05c

View file

@ -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() {