Bug 1884424 - Support shape() for offset-path and render it. r=layout-reviewers,emilio
commitd2f5968f8b41958af9c3775af56bb2d05952825d
authorBoris Chiou <boris.chiou@gmail.com>
Wed, 27 Mar 2024 20:18:38 +0000 (27 20:18 +0000)
committerBoris Chiou <boris.chiou@gmail.com>
Wed, 27 Mar 2024 20:18:38 +0000 (27 20:18 +0000)
treea8a8a1b5f171e080340ccfe569039ddc7abb3669
parent4c8464fdd032be8032d595094ee8d0d9d6a0e3d6
Bug 1884424 - Support shape() for offset-path and render it. r=layout-reviewers,emilio

We treat it as other basic shapes (excluding path(), which has some
special handling and it doesn't rely on the current layout position).

Therefore, we don't have any implementation for caching and we would like to
leave this part to Bug 1837042.

Also, add some more simple tests in css/motion to make sure we render it
properly.

Differential Revision: https://phabricator.services.mozilla.com/D204440
layout/base/MotionPathUtils.cpp
layout/style/test/property_database.js
servo/components/style/values/specified/basic_shape.rs
testing/web-platform/meta/css/motion/__dir__.ini
testing/web-platform/tests/css/motion/animation/offset-path-interpolation-008.html [new file with mode: 0644]
testing/web-platform/tests/css/motion/offset-path-shape-shape-001-ref.html [new file with mode: 0644]
testing/web-platform/tests/css/motion/offset-path-shape-shape-001.html [new file with mode: 0644]
testing/web-platform/tests/css/motion/offset-path-shape-shape-002.html [new file with mode: 0644]
testing/web-platform/tests/css/motion/offset-path-shape-shape-003.html [new file with mode: 0644]
testing/web-platform/tests/css/motion/parsing/offset-path-shape-computed.html [new file with mode: 0644]
testing/web-platform/tests/css/motion/parsing/offset-path-shape-parsing.html [new file with mode: 0644]