Closed Bug 1516364 Opened 6 years ago Closed 5 years ago

initial-scale value changes don't reflect after the first paint has finished

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1519013
Tracking Status
firefox66 --- affected

People

(Reporter: hiro, Unassigned)

References

(Blocks 1 open bug)

Details

https://www.mycloud.ch/s/#SD357A0E6981D57A193EFEA7AA8DFD24E218257E855C9133B4DDE5DB0D274601/latest/

This site initially sets initial-scale=1 and modifies the initial-scale to 0.7 later so that if the first paint finished before the modification, we don't have a chance to use the new initial-scale.

Similarly, www.zeit.de starts with this meta-viewport in their markup:

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover" id="viewport-meta">

But while the <head> tag scripts run as the page loads, they dynamically alter it like this:

if ( screen.width >= 768 && screen.width < 1280 ) {
  document.getElementById("viewport-meta").setAttribute("content", "width=1280");
}

In Chrome this works fine, but in Firefox such a dynamic change to the meta-viewport tag isn't recognized. (But note that if I change the code to document.write out a meta viewport at the stage, rather than already having one in the markup, things seem to work fine).

That sounds like bug 1498729?

Ah, you're right, it does sounds like bug 1498729. I'll move the see-also there.

I can no longer see the issue. Presumably it's been fixed by bug 1519013.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.