Bug 1733672 [wpt PR 31065] - Add viewport segments CSS environment variables, a=testonly
commit037de114ac3a6638599eec44fb478ffe07420c80
authorDaniel Libby <dlibby@microsoft.com>
Tue, 5 Oct 2021 22:04:11 +0000 (5 22:04 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 6 Oct 2021 08:04:06 +0000 (6 08:04 +0000)
tree6e98de8241081d2d7bd1a3071f1e64cd3a2f3d13
parent54b08fe4a2409c2e72548d683b02605c975fcfdf
Bug 1733672 [wpt PR 31065] - Add viewport segments CSS environment variables, a=testonly

Automatic update from web-platform-tests
Add viewport segments CSS environment variables

The viewport-segment-* set of environment variables are two dimensional,
i.e. you need an x and y values in order to access them. This change
adds support for such environment variables to CSS parser, style
resolution and the StyleEnvironmentVariables class. The variable values
are stored separately in a two dimensional vector, and new methods that
explicitly operate on two dimensional variables (via an explicit enum)
have been introduced.

Additionally, this CL converts the previous fold-* variables to the new
viewport-segment variables with the indexed syntax.

Bug: 1039051
Change-Id: Id520ee47f4c9bd79bc47ee1693c80750f2a8779b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3195791
Commit-Queue: Daniel Libby <dlibby@microsoft.com>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Auto-Submit: Daniel Libby <dlibby@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#928050}

--

wpt-commits: 25db855bf307d50924dc30cd2557784930d75248
wpt-pr: 31065
testing/web-platform/tests/css/css-env/indexed-env.tentative.html [new file with mode: 0644]
testing/web-platform/tests/css/css-env/supports-script.tentative.html