-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"translations into a ..." links are pointing to the wrong URL - Meta viewport allows for zoom (proposed) - b4f0c3 #2170
Comments
I'll also seize this opportunity to eliminate Failed Example 6, as it duplicates Failed Example 5. |
Failed Example 6 has already been removed via a previous PR, rendering the previous comment unnecessary. @Jym77 @carlosapaduarte, regarding my initial point, I'd like to hear your thoughts. While addressing this, I noticed that other links are also outdated, with anchors no longer functional. I'm contemplating whether it would be prudent to redirect all these links to the "previous" (it's still the current official one) version of CSS Device Adaptation Module Level 1 or if we should amend the rule based on the new CSS Viewport Module Level 1 working draft. However, considering the meta is specific to older devices, perhaps the rule no longer holds relevance if we point to the new documentation. |
I think the rule should probably work off how meta viewport is implemented in browsers, rather than the spec, since there are important differences between the spec and implementations. The Device Adaptation spec was reversed-engineered from the WebKit code - here's the actual code used in the current version of Safari.
The Mozilla code for parsing meta viewport works completely differently (nothing like the spec) and treats user-scalable=0, user-scalable=no, user-scalable=false as disabling zoom.
https://searchfox.org/mozilla-central/source/dom/base/Document.cpp#10938 And the Chromium code is here, which is fairly close to the Webkit code, but it's not clear what ParsePositiveNumber below does when it sees user-scalable=-0.1
This means there are implementation differences:
|
Currently, the links within the notes of the Expectations section of Meta viewport allows for zoom rule, direct to the wrong resource: https://www.w3.org/TR/css-viewport-1/, where the algorithm differs significantly from the one used to calculate failing examples.
The new algorithm is as follows:
Set-Property matches the listed property names case-insensitively. The property-value strings are interpreted as follows:
In contrast, the previous algorithm operated as follows:
Given that the rule is tailored to old devices (as newer devices typically ignore settings like user-scalable:no and maximum-scale:1), it seems necessary to point to the specific version of the CSS Device Adaptation Module Level 1. Without this specificity, the current wording of the rule lacks coherence.
If you concur with this assessment, I'm happy to create a PR to implement these amendments.
The text was updated successfully, but these errors were encountered: