Closed
Bug 1494422
Opened 5 years ago
Closed 5 years ago
Implement "extend-to-zoom" semantics in meta viewport tags
Categories
(Core :: Layout: Scrolling and Overflow, enhancement, P3)
Core
Layout: Scrolling and Overflow
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: botond, Assigned: hiro)
References
(Blocks 2 open bugs, )
Details
Attachments
(2 files)
In https://webcompat.com/issues/18826, there is a webpage for which Firefox computes the layout viewport size based on the meta viewport tag differently from Chrome, and as a result the page is rendered differently. The difference seems to be related to the "extend-to-zoom" semantics in the CSS Device Adaption spec (see [1]), which I believe Firefox does not implement. [1] https://webcompat.com/issues/18826#issuecomment-423704698
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Taking, I am going to fix this first.
Assignee: nobody → hikezoe
Status: NEW → ASSIGNED
Assignee | ||
Updated•5 years ago
|
See Also: → https://webcompat.com/issues/18292
Assignee | ||
Updated•5 years ago
|
See Also: → https://webcompat.com/issues/17497
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0efb466c9237209a212cb90973924702ec50f537
Assignee | ||
Comment 5•5 years ago
|
||
In the previous try, I did forget to factor layoutDeviceScale into scale values, so the sites in question were correctly scaled in RDM with enabling touch and apz.allow_zooming but not on Android devices. Here is a new try. https://treeherder.mozilla.org/#/jobs?repo=try&revision=3a342af240a90e288a28f0bb1c17443bba994220
Assignee | ||
Comment 6•5 years ago
|
||
The relevant parts of the spec are: https://drafts.csswg.org/css-device-adapt/#resolve-extend-to-zoom https://drafts.csswg.org/css-device-adapt/#resolve-initial-width-height https://drafts.csswg.org/css-device-adapt/#resolve-width https://drafts.csswg.org/css-device-adapt/#resolve-height This patch also introduces the parsing steps for width and height values in viewport meta tag. https://drafts.csswg.org/css-device-adapt/#width-and-height-properties
Assignee | ||
Comment 7•5 years ago
|
||
Depends on D8690
Assignee | ||
Comment 8•5 years ago
|
||
Moving a bunch of webcompat issue links in bug 1469747 into here. Basically sites having 'initial-scale' but no 'width' in meta viewport will be fixed by extend-to-zoom.
Updated•5 years ago
|
Priority: -- → P3
Assignee | ||
Comment 10•5 years ago
|
||
A final try; https://treeherder.mozilla.org/#/jobs?repo=try&revision=ac31f59bab4c49cfc6339a9f298ede436554e7d5
Updated•5 years ago
|
Attachment #9017064 -
Attachment description: Bug 1494422 - Introduce exntend-to-zoom and resolve width and height using it. r=botond → Bug 1494422 - Introduce extend-to-zoom and resolve width and height using it. r=botond
Assignee | ||
Comment 11•5 years ago
|
||
Never mind about the above try. I thought all patches have gotten r+. :)
Comment 12•5 years ago
|
||
Pushed by hikezoe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a7172b2e62e0 Introduce extend-to-zoom and resolve width and height using it. r=botond https://hg.mozilla.org/integration/autoland/rev/d94fc104be3b Test cases for viewport calculation. r=botond
Comment 13•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a7172b2e62e0 https://hg.mozilla.org/mozilla-central/rev/d94fc104be3b
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•