-
Notifications
You must be signed in to change notification settings - Fork 6
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
Is 100dvh
clamped between 100svh
and 100lvh
?
#14
Comments
100dvh
clamped between 10svh
and 100lvh
?100dvh
clamped between 100svh
and 100lvh
?
We touched upon this during #4 but not in too much detail. On the one hand It does feel weird that the Another way to look at it, might be that it could be expected that the page retains its aspect ratio as you pinch-zoom out. This would prevent this behavior where the Layout Viewport’s height keeps on growing as you pinch-zoom-out. @dcrousso mentioned that there most likely has gone some design consideration behind the existing behavior on iOS. To be checked internally at Apple. |
Please ask this question at the CSSWG: |
Totally fine if people want to talk through these issues in a smaller group before actually flagging it for the CSSWG agenda (we do this all the time), but agree with @jensimmons that issues around clarifying the CSS specs belong in the CSSWG repo. |
Filed w3c/csswg-drafts#7764 at the CSS WG to follow up on the definition. Additionally, this feedback on the exposed Safari behavior was submitted using the Safari Feedback Form. No confirmation of receipt was sent.
Footnotes |
The Dynamic Viewport is “sized with dynamic consideration of any UA interfaces that are dynamically expanded and retracted”.
As that expanded state is equal to the Small Viewport and that retracted state the Large Viewport, one could derive that the Dynamic Viewport and its units are clamped between the Small and Large Viewport Units.
In practice this is the case, except when over-pinch-zooming out in browsers that support allow this gesture (i.e. WebKit on Mobile). In those browsers, the
dvh
unit exceeds thelvh
size.RPReplay_Final1661174012.mov
It seems like the
dvh
unit here followswindow.innerHeight
which also grows – see #9Should
dvh
be clamped? Or should we allow this, and explicitly define it as allowed?The text was updated successfully, but these errors were encountered: