Removing meta viewport tag has no effect
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: hiro, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: spec-needed)
STR;
- Open any sites having a meta viewport element such as https://bugzilla.mozilla.org/show_bug.cgi?id=1866028 in RDM in devtools
- Remove the meta element
Now without any meta viewport element, the rendering result should looks like dekstop mode, but actually nothing happens.
Comment 1•1 year ago
|
||
The relevant spec here is https://drafts.csswg.org/css-viewport-1/#viewport-meta which doesn't say what to do here.
HTML has a spec issue: https://github.com/whatwg/html/issues/3494
Demo: https://meta-viewport-changes.glitch.me/
It seems we respond to changes to the content attribute (e.g. change to initial-scale=0.5) and inserting the element, but not removing the element (testing with devtools). Same in Chrome (devtools) and Safari (on iPad).
Since there seems to be interop in ignoring removing the element, I think that's what should be standardized.
| Reporter | ||
Comment 2•8 months ago
|
||
Reopening since there's actually at least one site affected by this bug.
| Reporter | ||
Comment 3•8 months ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #2)
Reopening since there's actually at least one site affected by this bug.
That's bug 1915077.
Updated•8 months ago
|
Description
•