From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../tests/svg/path/bearing/absolute-ref.svg | 9 + .../tests/svg/path/bearing/absolute.svg | 16 ++ .../tests/svg/path/bearing/relative-ref.svg | 9 + .../tests/svg/path/bearing/relative.svg | 16 ++ .../tests/svg/path/bearing/zero-ref.svg | 9 + .../web-platform/tests/svg/path/bearing/zero.svg | 16 ++ .../svg/path/closepath/segment-completing-ref.svg | 10 + .../svg/path/closepath/segment-completing.svg | 16 ++ .../distance/pathLength-positive-percentage.svg | 36 +++ .../svg/path/distance/pathLength-positive-ref.svg | 32 +++ .../svg/path/distance/pathLength-positive.svg | 38 ++++ .../distance/pathLength-zero-percentage-ref.svg | 30 +++ .../path/distance/pathLength-zero-percentage.svg | 36 +++ .../svg/path/distance/pathLength-zero-ref.svg | 26 +++ .../tests/svg/path/distance/pathLength-zero.svg | 39 ++++ .../path/distance/pathlength-circle-mutating.svg | 16 ++ .../svg/path/distance/pathlength-path-mutating.svg | 15 ++ .../svg/path/distance/pathlength-path-negative.svg | 7 + .../svg/path/distance/pathlength-path-zero.svg | 7 + .../tests/svg/path/distance/pathlength-path.svg | 8 + .../svg/path/distance/pathlength-rect-mutating.svg | 17 ++ .../tests/svg/path/distance/pathlength-rect.svg | 7 + .../reference/pathlength-path-mutating-ref.svg | 5 + .../reference/pathlength-path-negative-ref.svg | 5 + .../distance/reference/pathlength-path-ref.svg | 5 + .../reference/pathlength-path-zero-ref.svg | 4 + .../reference/pathlength-rect-mutating-ref.svg | 3 + .../distance/reference/pathlength-rect-ref.svg | 5 + .../tests/svg/path/error-handling/bounding.svg | 33 +++ .../path/error-handling/render-until-error-ref.svg | 13 ++ .../svg/path/error-handling/render-until-error.svg | 25 +++ .../interfaces/SVGAnimatedPathData-removed.svg | 24 ++ .../svg/path/property/d-interpolation-discrete.svg | 43 ++++ .../property/d-interpolation-relative-absolute.svg | 122 ++++++++++ .../svg/path/property/d-interpolation-single.svg | 245 +++++++++++++++++++++ .../tests/svg/path/property/getComputedStyle.svg | 48 ++++ .../tests/svg/path/property/marker-path-ref.svg | 42 ++++ .../tests/svg/path/property/marker-path.svg | 47 ++++ .../tests/svg/path/property/mpath-ref.svg | 5 + .../web-platform/tests/svg/path/property/mpath.svg | 18 ++ .../tests/svg/path/property/priority-ref.svg | 11 + .../tests/svg/path/property/priority.svg | 20 ++ .../resources/interpolation-test-common.js | 71 ++++++ .../tests/svg/path/property/serialization.svg | 34 +++ ...est_style_flush_on_dom_api_with_d_property.html | 80 +++++++ 45 files changed, 1323 insertions(+) create mode 100644 testing/web-platform/tests/svg/path/bearing/absolute-ref.svg create mode 100644 testing/web-platform/tests/svg/path/bearing/absolute.svg create mode 100644 testing/web-platform/tests/svg/path/bearing/relative-ref.svg create mode 100644 testing/web-platform/tests/svg/path/bearing/relative.svg create mode 100644 testing/web-platform/tests/svg/path/bearing/zero-ref.svg create mode 100644 testing/web-platform/tests/svg/path/bearing/zero.svg create mode 100644 testing/web-platform/tests/svg/path/closepath/segment-completing-ref.svg create mode 100644 testing/web-platform/tests/svg/path/closepath/segment-completing.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathLength-positive-percentage.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathLength-positive-ref.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathLength-positive.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathLength-zero-percentage-ref.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathLength-zero-percentage.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathLength-zero-ref.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathLength-zero.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathlength-circle-mutating.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathlength-path-mutating.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathlength-path-negative.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathlength-path-zero.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathlength-path.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathlength-rect-mutating.svg create mode 100644 testing/web-platform/tests/svg/path/distance/pathlength-rect.svg create mode 100644 testing/web-platform/tests/svg/path/distance/reference/pathlength-path-mutating-ref.svg create mode 100644 testing/web-platform/tests/svg/path/distance/reference/pathlength-path-negative-ref.svg create mode 100644 testing/web-platform/tests/svg/path/distance/reference/pathlength-path-ref.svg create mode 100644 testing/web-platform/tests/svg/path/distance/reference/pathlength-path-zero-ref.svg create mode 100644 testing/web-platform/tests/svg/path/distance/reference/pathlength-rect-mutating-ref.svg create mode 100644 testing/web-platform/tests/svg/path/distance/reference/pathlength-rect-ref.svg create mode 100644 testing/web-platform/tests/svg/path/error-handling/bounding.svg create mode 100644 testing/web-platform/tests/svg/path/error-handling/render-until-error-ref.svg create mode 100644 testing/web-platform/tests/svg/path/error-handling/render-until-error.svg create mode 100644 testing/web-platform/tests/svg/path/interfaces/SVGAnimatedPathData-removed.svg create mode 100644 testing/web-platform/tests/svg/path/property/d-interpolation-discrete.svg create mode 100644 testing/web-platform/tests/svg/path/property/d-interpolation-relative-absolute.svg create mode 100644 testing/web-platform/tests/svg/path/property/d-interpolation-single.svg create mode 100644 testing/web-platform/tests/svg/path/property/getComputedStyle.svg create mode 100644 testing/web-platform/tests/svg/path/property/marker-path-ref.svg create mode 100644 testing/web-platform/tests/svg/path/property/marker-path.svg create mode 100644 testing/web-platform/tests/svg/path/property/mpath-ref.svg create mode 100644 testing/web-platform/tests/svg/path/property/mpath.svg create mode 100644 testing/web-platform/tests/svg/path/property/priority-ref.svg create mode 100644 testing/web-platform/tests/svg/path/property/priority.svg create mode 100644 testing/web-platform/tests/svg/path/property/resources/interpolation-test-common.js create mode 100644 testing/web-platform/tests/svg/path/property/serialization.svg create mode 100644 testing/web-platform/tests/svg/path/property/test_style_flush_on_dom_api_with_d_property.html (limited to 'testing/web-platform/tests/svg/path') diff --git a/testing/web-platform/tests/svg/path/bearing/absolute-ref.svg b/testing/web-platform/tests/svg/path/bearing/absolute-ref.svg new file mode 100644 index 0000000000..85b20271a1 --- /dev/null +++ b/testing/web-platform/tests/svg/path/bearing/absolute-ref.svg @@ -0,0 +1,9 @@ + + + + diff --git a/testing/web-platform/tests/svg/path/bearing/absolute.svg b/testing/web-platform/tests/svg/path/bearing/absolute.svg new file mode 100644 index 0000000000..0efc295f31 --- /dev/null +++ b/testing/web-platform/tests/svg/path/bearing/absolute.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/bearing/relative-ref.svg b/testing/web-platform/tests/svg/path/bearing/relative-ref.svg new file mode 100644 index 0000000000..85b20271a1 --- /dev/null +++ b/testing/web-platform/tests/svg/path/bearing/relative-ref.svg @@ -0,0 +1,9 @@ + + + + diff --git a/testing/web-platform/tests/svg/path/bearing/relative.svg b/testing/web-platform/tests/svg/path/bearing/relative.svg new file mode 100644 index 0000000000..75b87ff8ac --- /dev/null +++ b/testing/web-platform/tests/svg/path/bearing/relative.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/bearing/zero-ref.svg b/testing/web-platform/tests/svg/path/bearing/zero-ref.svg new file mode 100644 index 0000000000..3558de3153 --- /dev/null +++ b/testing/web-platform/tests/svg/path/bearing/zero-ref.svg @@ -0,0 +1,9 @@ + + + + diff --git a/testing/web-platform/tests/svg/path/bearing/zero.svg b/testing/web-platform/tests/svg/path/bearing/zero.svg new file mode 100644 index 0000000000..80256429b6 --- /dev/null +++ b/testing/web-platform/tests/svg/path/bearing/zero.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/closepath/segment-completing-ref.svg b/testing/web-platform/tests/svg/path/closepath/segment-completing-ref.svg new file mode 100644 index 0000000000..cc068cefe3 --- /dev/null +++ b/testing/web-platform/tests/svg/path/closepath/segment-completing-ref.svg @@ -0,0 +1,10 @@ + + + + + diff --git a/testing/web-platform/tests/svg/path/closepath/segment-completing.svg b/testing/web-platform/tests/svg/path/closepath/segment-completing.svg new file mode 100644 index 0000000000..5b72c494b3 --- /dev/null +++ b/testing/web-platform/tests/svg/path/closepath/segment-completing.svg @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathLength-positive-percentage.svg b/testing/web-platform/tests/svg/path/distance/pathLength-positive-percentage.svg new file mode 100644 index 0000000000..d8e28b0889 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathLength-positive-percentage.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathLength-positive-ref.svg b/testing/web-platform/tests/svg/path/distance/pathLength-positive-ref.svg new file mode 100644 index 0000000000..9a9a1a8d47 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathLength-positive-ref.svg @@ -0,0 +1,32 @@ + + + + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathLength-positive.svg b/testing/web-platform/tests/svg/path/distance/pathLength-positive.svg new file mode 100644 index 0000000000..798b7ff3b8 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathLength-positive.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathLength-zero-percentage-ref.svg b/testing/web-platform/tests/svg/path/distance/pathLength-zero-percentage-ref.svg new file mode 100644 index 0000000000..dca91c1b5f --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathLength-zero-percentage-ref.svg @@ -0,0 +1,30 @@ + + + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathLength-zero-percentage.svg b/testing/web-platform/tests/svg/path/distance/pathLength-zero-percentage.svg new file mode 100644 index 0000000000..24213e443d --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathLength-zero-percentage.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathLength-zero-ref.svg b/testing/web-platform/tests/svg/path/distance/pathLength-zero-ref.svg new file mode 100644 index 0000000000..d5556add66 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathLength-zero-ref.svg @@ -0,0 +1,26 @@ + + + + + + + + + + The quick brown fox + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathLength-zero.svg b/testing/web-platform/tests/svg/path/distance/pathLength-zero.svg new file mode 100644 index 0000000000..4ae0b836f7 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathLength-zero.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + + + + + The quick brown fox + + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathlength-circle-mutating.svg b/testing/web-platform/tests/svg/path/distance/pathlength-circle-mutating.svg new file mode 100644 index 0000000000..a033962e6a --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathlength-circle-mutating.svg @@ -0,0 +1,16 @@ + + Mutating the 'pathLength' attribute ('circle' element) + + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathlength-path-mutating.svg b/testing/web-platform/tests/svg/path/distance/pathlength-path-mutating.svg new file mode 100644 index 0000000000..b3f71653f4 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathlength-path-mutating.svg @@ -0,0 +1,15 @@ + + Mutating the 'pathLength' attribute ('path' element) + + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathlength-path-negative.svg b/testing/web-platform/tests/svg/path/distance/pathlength-path-negative.svg new file mode 100644 index 0000000000..ce782dbef7 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathlength-path-negative.svg @@ -0,0 +1,7 @@ + + The 'pathLength' attribute set to a negative value ('path' element) + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathlength-path-zero.svg b/testing/web-platform/tests/svg/path/distance/pathlength-path-zero.svg new file mode 100644 index 0000000000..f5c4168cd5 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathlength-path-zero.svg @@ -0,0 +1,7 @@ + + The 'pathLength' attribute set to zero ('path' element) + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathlength-path.svg b/testing/web-platform/tests/svg/path/distance/pathlength-path.svg new file mode 100644 index 0000000000..79402505ca --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathlength-path.svg @@ -0,0 +1,8 @@ + + The 'pathLength' attribute ('path' element) + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathlength-rect-mutating.svg b/testing/web-platform/tests/svg/path/distance/pathlength-rect-mutating.svg new file mode 100644 index 0000000000..2dcbe44079 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathlength-rect-mutating.svg @@ -0,0 +1,17 @@ + + Mutating the 'pathLength' attribute ('rect' element) + + + + + diff --git a/testing/web-platform/tests/svg/path/distance/pathlength-rect.svg b/testing/web-platform/tests/svg/path/distance/pathlength-rect.svg new file mode 100644 index 0000000000..106fed5f2e --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/pathlength-rect.svg @@ -0,0 +1,7 @@ + + The 'pathLength' attribute ('rect' element) + + + + diff --git a/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-mutating-ref.svg b/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-mutating-ref.svg new file mode 100644 index 0000000000..fe45125f6b --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-mutating-ref.svg @@ -0,0 +1,5 @@ + + Mutating the 'pathLength' attribute ('path' element; reference) + + diff --git a/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-negative-ref.svg b/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-negative-ref.svg new file mode 100644 index 0000000000..c4dfb1b2b5 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-negative-ref.svg @@ -0,0 +1,5 @@ + + The 'pathLength' attribute set to a negative value ('path' element; reference) + + diff --git a/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-ref.svg b/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-ref.svg new file mode 100644 index 0000000000..79aca87204 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-ref.svg @@ -0,0 +1,5 @@ + + The 'pathLength' attribute ('path' element; reference) + + diff --git a/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-zero-ref.svg b/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-zero-ref.svg new file mode 100644 index 0000000000..232bf66cbc --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/reference/pathlength-path-zero-ref.svg @@ -0,0 +1,4 @@ + + The 'pathLength' attribute set to zero ('path' element; reference) + + diff --git a/testing/web-platform/tests/svg/path/distance/reference/pathlength-rect-mutating-ref.svg b/testing/web-platform/tests/svg/path/distance/reference/pathlength-rect-mutating-ref.svg new file mode 100644 index 0000000000..120941444a --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/reference/pathlength-rect-mutating-ref.svg @@ -0,0 +1,3 @@ + + + diff --git a/testing/web-platform/tests/svg/path/distance/reference/pathlength-rect-ref.svg b/testing/web-platform/tests/svg/path/distance/reference/pathlength-rect-ref.svg new file mode 100644 index 0000000000..232178d732 --- /dev/null +++ b/testing/web-platform/tests/svg/path/distance/reference/pathlength-rect-ref.svg @@ -0,0 +1,5 @@ + + The 'pathLength' attribute ('rect' element; reference) + + diff --git a/testing/web-platform/tests/svg/path/error-handling/bounding.svg b/testing/web-platform/tests/svg/path/error-handling/bounding.svg new file mode 100644 index 0000000000..85c089b25b --- /dev/null +++ b/testing/web-platform/tests/svg/path/error-handling/bounding.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/error-handling/render-until-error-ref.svg b/testing/web-platform/tests/svg/path/error-handling/render-until-error-ref.svg new file mode 100644 index 0000000000..dd2d7c32a6 --- /dev/null +++ b/testing/web-platform/tests/svg/path/error-handling/render-until-error-ref.svg @@ -0,0 +1,13 @@ + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/error-handling/render-until-error.svg b/testing/web-platform/tests/svg/path/error-handling/render-until-error.svg new file mode 100644 index 0000000000..6b8a50b4f2 --- /dev/null +++ b/testing/web-platform/tests/svg/path/error-handling/render-until-error.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/interfaces/SVGAnimatedPathData-removed.svg b/testing/web-platform/tests/svg/path/interfaces/SVGAnimatedPathData-removed.svg new file mode 100644 index 0000000000..b9e62177cb --- /dev/null +++ b/testing/web-platform/tests/svg/path/interfaces/SVGAnimatedPathData-removed.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/property/d-interpolation-discrete.svg b/testing/web-platform/tests/svg/path/property/d-interpolation-discrete.svg new file mode 100644 index 0000000000..5b20a589bb --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/d-interpolation-discrete.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/property/d-interpolation-relative-absolute.svg b/testing/web-platform/tests/svg/path/property/d-interpolation-relative-absolute.svg new file mode 100644 index 0000000000..09d4c70712 --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/d-interpolation-relative-absolute.svg @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/property/d-interpolation-single.svg b/testing/web-platform/tests/svg/path/property/d-interpolation-single.svg new file mode 100644 index 0000000000..107b607bec --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/d-interpolation-single.svg @@ -0,0 +1,245 @@ + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/property/getComputedStyle.svg b/testing/web-platform/tests/svg/path/property/getComputedStyle.svg new file mode 100644 index 0000000000..400f92ec84 --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/getComputedStyle.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/property/marker-path-ref.svg b/testing/web-platform/tests/svg/path/property/marker-path-ref.svg new file mode 100644 index 0000000000..8cd5c8ea48 --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/marker-path-ref.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/property/marker-path.svg b/testing/web-platform/tests/svg/path/property/marker-path.svg new file mode 100644 index 0000000000..c03e9c515c --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/marker-path.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/property/mpath-ref.svg b/testing/web-platform/tests/svg/path/property/mpath-ref.svg new file mode 100644 index 0000000000..db281c33da --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/mpath-ref.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/testing/web-platform/tests/svg/path/property/mpath.svg b/testing/web-platform/tests/svg/path/property/mpath.svg new file mode 100644 index 0000000000..c4233b1705 --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/mpath.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/property/priority-ref.svg b/testing/web-platform/tests/svg/path/property/priority-ref.svg new file mode 100644 index 0000000000..cbc7c385f6 --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/priority-ref.svg @@ -0,0 +1,11 @@ + + + + + + diff --git a/testing/web-platform/tests/svg/path/property/priority.svg b/testing/web-platform/tests/svg/path/property/priority.svg new file mode 100644 index 0000000000..ef187c1913 --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/priority.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/property/resources/interpolation-test-common.js b/testing/web-platform/tests/svg/path/property/resources/interpolation-test-common.js new file mode 100644 index 0000000000..b7f8cd308d --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/resources/interpolation-test-common.js @@ -0,0 +1,71 @@ +'use strict'; +function test_interpolation(settings, expectations) { + + test(function(){ + assert_true(CSS.supports(settings.property, settings.from), 'Value "' + settings.from + '" is supported by ' + settings.property); + assert_true(CSS.supports(settings.property, settings.to), 'Value "' + settings.to + '" is supported by ' + settings.property); + }, '"' + settings.from + '" and "' + settings.to + '" are valid ' + settings.property + ' values'); + + const container = document.getElementById('container'); + for (let i = 0; i < expectations.length; ++i) { + const progress = expectations[i].at; + const expectation = expectations[i].expect; + const animationId = 'anim' + i; + const targetId = 'target' + i; + const referenceId = 'reference' + i; + + test(function(){ + assert_true(CSS.supports(settings.property, expectation), 'Value "' + expectation + '" is supported by ' + settings.property); + + const target = document.createElementNS('http://www.w3.org/2000/svg', 'g'); + target.id = targetId; + container.appendChild(target); + + const reference = document.createElementNS('http://www.w3.org/2000/svg', 'g'); + reference.id = referenceId; + container.appendChild(reference); + + assert_equals(getComputedStyle(target)[settings.property], getComputedStyle(reference)[settings.property]); + + // Create an animation of length 2s that starts at -1s so the current time of 0s is + // exactly halfway through the animation. A cubic bezier timing function is used that + // evaluates to |progress| at the current time (halfway through the animation). + + // Cubic bezier evaluates to |progress| at 50%. + const y = (8 * progress - 1) / 6; + const timing_function = 'cubic-bezier(0, ' + y + ', 1, ' + y + ')'; + + const stylesheet = document.createElementNS('http://www.w3.org/2000/svg', 'style'); + stylesheet.textContent = + '#' + targetId + ' {\n' + + ' animation: 2s ' + timing_function + ' -1s paused ' + animationId + ';\n' + + '}\n' + + '@keyframes ' + animationId + ' {\n' + + ' 0% { ' + settings.property + ': ' + settings.from + '; }\n' + + ' 100% { ' + settings.property + ': ' + settings.to + '; }\n' + + '}\n' + + '#' + referenceId + ' {\n' + + ' ' + settings.property + ': ' + expectation + ';\n' + + '}\n'; + container.appendChild(stylesheet); + + assert_equals(getComputedStyle(target)[settings.property], getComputedStyle(reference)[settings.property]); + assert_equals(getComputedStyle(target)[settings.property], expectation); + + container.removeChild(target); + container.removeChild(reference); + container.removeChild(stylesheet); + }, 'Animation between "' + settings.from + '" and "' + settings.to + '" at progress ' + progress); + } +} + +function test_no_interpolation(settings) { + const expectFrom = [-1, 0, 0.125].map(function (progress) { + return {at: progress, expect: settings.from}; + }); + const expectTo = [0.875, 1, 2].map(function (progress) { + return {at: progress, expect: settings.to}; + }); + + test_interpolation(settings, expectFrom.concat(expectTo)); +} diff --git a/testing/web-platform/tests/svg/path/property/serialization.svg b/testing/web-platform/tests/svg/path/property/serialization.svg new file mode 100644 index 0000000000..3199beb92b --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/serialization.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/path/property/test_style_flush_on_dom_api_with_d_property.html b/testing/web-platform/tests/svg/path/property/test_style_flush_on_dom_api_with_d_property.html new file mode 100644 index 0000000000..248118443b --- /dev/null +++ b/testing/web-platform/tests/svg/path/property/test_style_flush_on_dom_api_with_d_property.html @@ -0,0 +1,80 @@ + +Test DOM APIs which flush the style properly, with d property + + + + + + +
+ + + + -- cgit v1.2.3