[css-values-4] Add svh/svw, lvh/lvw, dvh/dvw length units (and *i/*b logical versions)
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox101 | --- | fixed |
People
(Reporter: mozilla-apprentice, Assigned: hiro)
References
(Blocks 3 open bugs, )
Details
(Keywords: dev-doc-complete)
Attachments
(5 files)
A resolution was made for csswg-drafts/#4329.
[css-values-4] Add vhc value
- RESOLVED: Add a set of viewport units (vhc for ex.) that reflect the size of the layout viewport less all UA UI
Comment 1•3 years ago
|
||
(Note that the WG may still bikeshed the actual names to be used.)
For reference:
- Chromium Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1093055
- Webkit Bug: https://bugs.webkit.org/show_bug.cgi?id=219287
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
vhc has been replaced by the small (sv*), large (lv*) and dynamic (dv*) viewport units in CSS Values 4, following these two decisions: one, two. Will this bug be renamed and repurposed to cover it? If so, it should block https://bugzilla.mozilla.org/show_bug.cgi?id=1531237.
Comment 4•2 years ago
|
||
(In reply to Luke from comment #3)
vhc has been replaced by the small (sv*), large (lv*) and dynamic (dv*) viewport units in CSS Values 4, following these two decisions: one, two.
Thanks for noting that. This was ~expected, per comment 1 here.
Will this bug be renamed and repurposed to cover it?
Yes.
If so, it should block https://bugzilla.mozilla.org/show_bug.cgi?id=1531237.
Yup, makes sense.
Assignee | ||
Comment 6•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 7•1 year ago
|
||
Depends on D143252
Assignee | ||
Comment 10•1 year ago
|
||
Depends on D143253
Assignee | ||
Comment 11•1 year ago
|
||
Depends on D143259
Comment 12•1 year ago
|
||
This applies on top of the current version of D143252 and was sorta what I meant. Does something like this make sense to you? I don't think we need to care about the viewport vs dynamic viewport distinction in the computed style, in the sense that I expect elements using viewport units to be few, but if you think otherwise we can keep it.
The main thing I wanted is not having two different code paths to invalidate these, this makes the media query codepath call into InvalidateForViewportUnits()
. What do you think about something like this?
Comment 13•1 year ago
|
||
Comment on attachment 9271421 [details] [diff] [review] Invalidation tweaks. Review of attachment 9271421 [details] [diff] [review]: ----------------------------------------------------------------- ::: servo/ports/geckolib/glue.rs @@ +7369,5 @@ > + let device = document_data.stylist.device(); > + if !device.used_viewport_size() { > + return; > + } > + if dynamic_only && !device.used_viewport_size() { This should be used_dynamic_viewport_size of course, d'oh.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 14•1 year ago
|
||
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f0bf24a9a519 Implement new {small,large,dynamic} viewport units. r=emilio https://hg.mozilla.org/integration/autoland/rev/d9a19df80e22 Implement new *vi and *vb units. r=emilio https://hg.mozilla.org/integration/autoland/rev/32d002922d49 Fix a race condition in viewport-units-keyframes.html where an animation inside an iframe gets started before the iframe gets sized. r=emilio https://hg.mozilla.org/integration/autoland/rev/f7e13fe01ee4 Use standards mode and specify `height:100%` to <body> not reply on a weird quirk mode behavior. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/33599 for changes under testing/web-platform/tests
Comment 16•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f0bf24a9a519
https://hg.mozilla.org/mozilla-central/rev/d9a19df80e22
https://hg.mozilla.org/mozilla-central/rev/32d002922d49
https://hg.mozilla.org/mozilla-central/rev/f7e13fe01ee4
Upstream PR merged by moz-wptsync-bot
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Updated•11 months ago
|
Updated•11 months ago
|
Comment 18•10 months ago
|
||
Documentation has been updated for new viewport sizes and new viewport-percentage units. Documentation has also been updated for the support of vi
and vb
units.
Doc: https://developer.mozilla.org/en-US/docs/Web/CSS/length#relative_length_units_based_on_viewport
Release note: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/101
Doc issue tracker (including issues pending review and approval): https://github.com/mdn/content/issues/15465
Assignee | ||
Comment 19•8 months ago
|
||
I suppose bug 1779396 needs this new viewport units work.
Description
•