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)
Core
Layout
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.
Comment 1•6 years ago
|
||
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).
See Also: → https://webcompat.com/issues/22009
Reporter | ||
Comment 2•6 years ago
|
||
That sounds like bug 1498729?
Comment 3•6 years ago
|
||
Ah, you're right, it does sounds like bug 1498729. I'll move the see-also there.
See Also: https://webcompat.com/issues/22009 →
Reporter | ||
Comment 4•5 years ago
|
||
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.
Description
•