gecko-dev/testing/web-platform/tests/css/css-backgrounds/reference
George Steel 748aad0ef7 Bug 1625667 [wpt PR 22509] - fix background-position-xy serialization for right/bottom offsets, a=testonly
Automatic update from web-platform-tests
fix background-position-xy serialization for right/bottom offsets

Make the implementations of CSSValueFromComputedStyle for
background-position-x/y return correct values when three/four-value
syntax is used with background-position. Since these properties only
support single-value syntax, positions from the right or bottom will
use calc() values if they result in mixed lengths and percentages when
converted to be from the left/top. This is not the canonical form in
the css-backgrounds-4 spec proposal, but does not require changes to
the parser.

Add a reftest (passes without patch) for three/four-value
background-position syntax (there is currently only a manual test).
Add another version of the reftest (fails without patch) which takes
the above and attempts to write back the computed values of
background-position-x/y.

This is done in preparation to make transitions use normal keyframes
which require round-trip serialization of all transition properties.

Change-Id: I50e714746cc15fd0591bcd0a41cf9ecd56f55c44
Bug: 610627
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2121415
Reviewed-by: Robert Flack <flackr@chromium.org>
Commit-Queue: George Steel <gtsteel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#755462}

--

wpt-commits: e8d4020b565b63adfde507cb7ab112d76aeaf603
wpt-pr: 22509
2020-04-06 12:43:57 +00:00
..
60x60-green-background.html
background-334-ref.xht
background-clip-002-ref.html
background-clip-004-ref.html
background-clip-005-ref.html
background-clip-content-box-ref.html
background-color-clip.html
background-gradient-subpixel-fills-area-ref.html
background-image-001-ref.html
background-image-centered-with-border-radius-ref.html
background-image-cover-zoomed-1-ref.html
background-image-first-letter-ref.html
background-image-first-line-ref.html
background-image-large-with-auto-ref.html
background-image-table-cells-zoomed-ref.html
background-origin-002-ref.html
background-origin-004-ref.html
background-origin-005-ref.html
background-origin-006-ref.html
background-origin-007-ref.html
background-paint-order-001-ref.html
background-position-negative-percentage-comparison-ref.html
background-position-subpixel-at-border-ref.tentative.html
background-position-three-four-values-ref.html Bug 1625667 [wpt PR 22509] - fix background-position-xy serialization for right/bottom offsets, a=testonly 2020-04-06 12:43:57 +00:00
background-rounded-image-clip.html
background-size-002-ref.html
background-size-006-ref.html
background-size-021-ref.html
background-size-025-ref.xht
background-size-026-ref.xht
background-size-027-ref.xht
background-size-028-ref.xht
background-size-029-ref.xht
background-size-031-ref.xht
background-size-one-value-1x1-image-ref.html
background-size-ref.html
background_clip_padding-box.html
border-image-repeat-005-ref.html
border-image-repeat-round-ref.html
border-image-round-and-stretch-ref.html
border-image-slice-percentage-ref.html
border-image-space-001-ref.html
border-radius-clipping-ref.html
border-radius-horizontal-value-is-zero-ref.html
box-shadow-005-ref.html
box-shadow-body-ref.html
box-shadow-inset-spread-without-border-radius.html
box-shadow-inset-without-border-radius.html
box-shadow-outset-spread-without-border-radius.html
box-shadow-outset-without-border-radius.html
css-border-radius-ref-001.html
css-border-radius-ref-002.html
css-box-shadow-ref-001.html Bug 1419296 - Update web-platform-tests to fa27b785c62e67cc3a12201612db188c4fdd49ad, a=testonly 2017-11-21 07:39:00 +00:00
css3-background-clip-border-box-ref.html
css3-background-clip-content-box-ref.html
css3-background-clip-padding-box-ref.html
css3-background-clip-ref.html
css3-background-origin-border-box-ref.html
css3-background-origin-content-box-ref.html
css3-background-origin-padding-box-ref.html
css3-background-size-001-ref.html
css3-background-size-contain-ref.html
css3-background-size-ref.html
css3-border-image-repeat-repeat-ref.html
css3-border-image-repeat-stretch-ref.html
css3-border-image-source-ref.html
css3-box-shadow-ref.html
first-letter-space-not-selected-ref.html
ref-filled-black-96px-square.xht
ref-if-there-is-no-red.xht
reference.html
ttwf-reftest-borderRadius-ref.html