Open
Bug 977485
Opened 12 years ago
Updated 4 years ago
innerWidth and innerHeight are not changing when zooming in/out a web page
Categories
(Core :: General, defect)
Tracking
()
NEW
People
(Reporter: Omega, Unassigned)
References
()
Details
Attachments
(1 file)
|
621 bytes,
text/html
|
Details |
[Steps To Reproduce]
1. Zooming in/out a web page
2. Check window.innerWidth/window.innerHeight
[Actual Result]
window.innerWidth/window.innerHeight keep the same values
[Expected Result]
window.innerWidth/window.innerHeight should change by different zoom levels
Device: Helix
OS Version: 1.2.0.0-prerelease
Platform Version: 26.0
Build Identifier: 20140226164002
Updated•12 years ago
|
Component: Gaia::System::Window Mgmt → DOM
Product: Firefox OS → Core
Comment 1•12 years ago
|
||
If this is mobile-style zoom-and-pan zoom, then it doesn't change the size of css px and hence doesn't change the window size.
Severity: critical → normal
Component: DOM → General
| Reporter | ||
Comment 2•12 years ago
|
||
(In reply to Boris Zbarsky [:bz] (reviews will be slow; ask someone else) from comment #1)
> If this is mobile-style zoom-and-pan zoom, then it doesn't change the size
> of css px and hence doesn't change the window size.
But in 1.3 or 1.4, the inner sizes are changing when zooming the web page. So, which version's behavior is correct?
Comment 3•12 years ago
|
||
> So, which version's behavior is correct?
That's two questions rolled into one. Specifically:
1) Which of the two different kinds of zoom is supposed to be happening? This is a pure UX question, not a web standards question.
2) Given the answer to #1, is it implemented correctly?
I'd love an answer to #1, because without that it's meaningless to talk about #2.
| Reporter | ||
Comment 4•12 years ago
|
||
(In reply to Boris Zbarsky [:bz] (reviews will be slow; ask someone else) from comment #3)
> > So, which version's behavior is correct?
>
> That's two questions rolled into one. Specifically:
>
> 1) Which of the two different kinds of zoom is supposed to be happening?
> This is a pure UX question, not a web standards question.
>
> 2) Given the answer to #1, is it implemented correctly?
>
> I'd love an answer to #1, because without that it's meaningless to talk
> about #2.
IMHO, it's not a UX question, because innerWidth and innerHeight are nothing to do with users. Users care about that a web page looks the same (or similar) among all browsers, not two JavsScript variables.
I checked Safari on iOS 7 and Chrome on Android 4.4, the inner sizes do change by different zoom levels. I think we should do the same thing to make sure a web page look the same (or similar) among all browsers. I'm not sure if it's already a web standard, but if not, it's our responsibility to make it a standard.
Comment 5•12 years ago
|
||
> because innerWidth and innerHeight are nothing to do with users.
The UX question is whether zoom perfoms a relayout or not. How inner* is affected, or not, follows once you've made that decision.
> I'm not sure if it's already a web standard
Again, there are two possible zoom behaviors, which differ in all sorts of ways, not just in their effects on window.inner*, and different browsers implement different ones. Some browsers implement both, with different ways of triggering them.
There are in fact proposed standards that cover how the two different zoom behaviors should behave.
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•