Closed Bug 1753008 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 32635 - Support small/large/dynamic/logical viewport units

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 32635 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/32635
Details from upstream follow.

Anders Hartvoll Ruud <andruud@chromium.org> wrote:

Support small/large/dynamic/logical viewport units

This CL adds support for new units:

  • svw, svh (etc): Resolves against the viewport as it would be with
    browser controls fully expanded.
  • lvw, lvh (etc): Resolves against the viewport as it would be with
    browser controls fully minimized.
  • dvw, dvh (etc): Resolves against the viewport as it presently
    appears given the current state of browser controls.
  • vi, vb: Resolves against vw/vh depending on the writing-mode
    of the target element.

Note that dv* units are deliberately not responsive to browser control
animations, and will always resolve to either sv* or lv* (not some
value in between). This is to avoid excessive scroll-driven relayouts
on mobile devices.

This CL uses the existing system/bits for invalidation of viewport
units. Targeted invalidation of dynamic units will come in a
subsequent CL.

Bug: 1093055
Change-Id: I3ba55a86de53514f2020a2d5bdda579f06dd9d0a
Reviewed-on: https://chromium-review.googlesource.com/3344791
WPT-Export-Revision: 30f81d7e1678e225879b5a785bb333658113704e

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e1324f6b56d0
[wpt PR 32635] - Support small/large/dynamic/logical viewport units, a=testonly
https://hg.mozilla.org/integration/autoland/rev/f374523d85a1
[wpt PR 32635] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0e024177c3c9
[wpt PR 32635] - Support small/large/dynamic/logical viewport units, a=testonly
https://hg.mozilla.org/integration/autoland/rev/3ad6f18b3093
[wpt PR 32635] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.