Open Bug 1915077 Opened 1 year ago Updated 8 months ago

Removing meta viewport tag has no effect

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

REOPENED

People

(Reporter: hiro, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: spec-needed)

STR;

  1. Open any sites having a meta viewport element such as https://bugzilla.mozilla.org/show_bug.cgi?id=1866028 in RDM in devtools
  2. Remove the meta element

Now without any meta viewport element, the rendering result should looks like dekstop mode, but actually nothing happens.

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.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX

Reopening since there's actually at least one site affected by this bug.

Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Blocks: 1976158

(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.

You need to log in before you can comment on or make changes to this bug.