Closed Bug 1580133 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 18959 - CSS: Test computed values for CSS Motion path properties

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Eric Willigers <ericwilligers@chromium.org> wrote:

CSS: Test computed values for CSS Motion path properties

offset-distance is a computed length-percentage.
offset-anchor and offset-position are each a computed position
(i.e. a pair of computed length-percentage).

offset-path has absolute path commands.

https://drafts.fxtf.org/motion-1/#property-index

Change-Id: Ic63904ec78c09214a9feb5ff02d6f6f43ae8d420
Reviewed-on: https://chromium-review.googlesource.com/1794943
WPT-Export-Revision: 6ef449668d530d4cce1959c879b784f6160d04a9

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Ran 4 tests and 48 subtests
OK     : 4
PASS   : 22
FAIL   : 26

New tests that have failures or other problems:
/css/motion/parsing/offset-path-computed.html
    Property offset-path value 'path("M 0 0 L 100 100 m 0 100 l 100 0 Z l 160 20 Z")' computes to 'path("M 0 0 L 100 100 M 100 200 L 200 200 Z L 260 220 Z")': FAIL
    Property offset-path value 'path("m 10 170 h 90 v 30 m 0 0 s 1 2 3 4 z c 9 8 7 6 5 4")' computes to 'path("M 10 170 H 100 V 200 M 100 200 S 101 202 103 204 Z C 109 208 107 206 105 204")': FAIL
    Property offset-path value 'path("m 10 20 a 10 20 30 1 0 40 50 a 110 120 30 1 1 140 50")' computes to 'path("M 10 20 A 10 20 30 1 0 50 70 A 110 120 30 1 1 190 120")': FAIL
    Property offset-path value 'path("m 10 20 l 20 30 Z l 50 60 Z m 70 80 l 90 60 Z t 70 120")' computes to 'path("M 10 20 L 30 50 Z L 60 80 Z M 80 100 L 170 160 Z T 150 220")': FAIL
    Property offset-path value 'path("m 10 20 q 30 60 40 50 q 100 70 90 80")' computes to 'path("M 10 20 Q 40 80 50 70 Q 150 140 140 150")': FAIL
    Property offset-path value 'path("m 20 0 h -100")' computes to 'path("M 20 0 H -80")': FAIL
    Property offset-path value 'ray(-720deg sides)' computes to 'ray(-720deg sides)': FAIL
    Property offset-path value 'ray(0.25turn closest-corner contain)' computes to 'ray(90deg closest-corner contain)': FAIL
    Property offset-path value 'ray(0rad closest-side)' computes to 'ray(0deg closest-side)': FAIL
    Property offset-path value 'ray(200grad farthest-side)' computes to 'ray(180deg farthest-side)': FAIL
    Property offset-path value 'ray(270deg farthest-corner contain)' computes to 'ray(270deg farthest-corner contain)': FAIL
    Property offset-path value 'ray(calc(180deg - 45deg) farthest-side)' computes to 'ray(calc(135deg) farthest-side)': FAIL
/css/motion/parsing/offset-position-computed.html
    Property offset-position value '10px 20%' computes to '10px 20%': FAIL
    Property offset-position value 'auto' computes to 'auto': FAIL
    Property offset-position value 'calc(10px - 0.5em) calc(10px + 0.5em)' computes to '-10px 30px': FAIL
    Property offset-position value 'calc(5em + 20%) center' computes to 'calc(20% + 200px) 50%': FAIL
    Property offset-position value 'center bottom' computes to '50% 100%': FAIL
    Property offset-position value 'center center' computes to '50% 50%': FAIL
    Property offset-position value 'center top' computes to '50% 0%': FAIL
    Property offset-position value 'left -10px top -20%' computes to '-10px -20%': FAIL
    Property offset-position value 'left 10% bottom 2em' computes to '10% calc(100% - 80px)': FAIL
    Property offset-position value 'left bottom' computes to '0% 100%': FAIL
    Property offset-position value 'right 10% bottom 5em' computes to '90% calc(100% - 200px)': FAIL
    Property offset-position value 'right 3em' computes to '100% 120px': FAIL
    Property offset-position value 'right center' computes to '100% 50%': FAIL
    Property offset-position value 'top 10px right -20%' computes to '120% 10px': FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/be96df896da7
[wpt PR 18959] - CSS: Test computed values for CSS Motion path properties, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/afc4d2b8da83
[wpt PR 18959] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.