Skip to content

Commit 087d93d

Browse files
Ahmad Saleemfujii
authored andcommitted
Sync svg/path from WPT upstream
https://bugs.webkit.org/show_bug.cgi?id=292122 Reviewed by Fujii Hironori. Upstream commit: web-platform-tests/wpt@cae0369 * LayoutTests/imported/w3c/resources/resource-files.json: * LayoutTests/imported/w3c/web-platform-tests/svg/path/property/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/svg/path/reftests/path-zoom-expected.html: * LayoutTests/imported/w3c/web-platform-tests/svg/path/reftests/path-zoom-ref.html: * LayoutTests/imported/w3c/web-platform-tests/svg/path/reftests/path-zoom.html: * LayoutTests/imported/w3c/web-platform-tests/svg/path/reftests/w3c-import.log: Canonical link: https://commits.webkit.org/294169@main
1 parent ca55d7b commit 087d93d

File tree

6 files changed

+101
-0
lines changed

6 files changed

+101
-0
lines changed

LayoutTests/imported/w3c/resources/resource-files.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10847,11 +10847,14 @@
1084710847
"web-platform-tests/svg/path/distance/reference/pathlength-rect-mutating-ref.svg",
1084810848
"web-platform-tests/svg/path/distance/reference/pathlength-rect-ref.svg",
1084910849
"web-platform-tests/svg/path/error-handling/render-until-error-ref.svg",
10850+
"web-platform-tests/svg/path/property/d-interpolation-within-document-referenced-via-background-image-ref.html",
10851+
"web-platform-tests/svg/path/property/d-interpolation-within-document-referenced-via-background-image.html",
1085010852
"web-platform-tests/svg/path/property/d-none-expected.svg",
1085110853
"web-platform-tests/svg/path/property/d-none-ref.svg",
1085210854
"web-platform-tests/svg/path/property/marker-path-ref.svg",
1085310855
"web-platform-tests/svg/path/property/mpath-ref.svg",
1085410856
"web-platform-tests/svg/path/property/priority-ref.svg",
10857+
"web-platform-tests/svg/path/reftests/path-zoom-ref.html",
1085510858
"web-platform-tests/svg/pservers/reftests/gradient-inheritance-not-in-rendertree-01.tentative.svg",
1085610859
"web-platform-tests/svg/pservers/reftests/gradient-inheritance-not-in-rendertree-02.tentative.svg",
1085710860
"web-platform-tests/svg/pservers/reftests/pattern-inheritance-not-in-rendertree-01.tentative.svg",

LayoutTests/imported/w3c/web-platform-tests/svg/path/property/w3c-import.log

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ List of files:
1717
/LayoutTests/imported/w3c/web-platform-tests/svg/path/property/d-interpolation-discrete.svg
1818
/LayoutTests/imported/w3c/web-platform-tests/svg/path/property/d-interpolation-relative-absolute.svg
1919
/LayoutTests/imported/w3c/web-platform-tests/svg/path/property/d-interpolation-single.svg
20+
/LayoutTests/imported/w3c/web-platform-tests/svg/path/property/d-interpolation-within-document-referenced-via-background-image-ref.html
21+
/LayoutTests/imported/w3c/web-platform-tests/svg/path/property/d-interpolation-within-document-referenced-via-background-image.html
2022
/LayoutTests/imported/w3c/web-platform-tests/svg/path/property/d-none-expected.svg
2123
/LayoutTests/imported/w3c/web-platform-tests/svg/path/property/d-none-expected.svg
2224
/LayoutTests/imported/w3c/web-platform-tests/svg/path/property/d-none-ref.svg
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!doctype html>
2+
<html>
3+
<style type="text/css">
4+
path {
5+
stroke-width: 10px;
6+
stroke: blue;
7+
fill: lime;
8+
}
9+
svg {
10+
width: 100px;
11+
height: 100px;
12+
border: 1px solid black;
13+
background: red;
14+
zoom: 400%;
15+
}
16+
</style>
17+
<body>
18+
<svg>
19+
<path d="m 5 5 h90 v90 h-90 z"></path>
20+
</svg>
21+
</body>
22+
</html>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!doctype html>
2+
<html>
3+
<style type="text/css">
4+
path {
5+
stroke-width: 10px;
6+
stroke: blue;
7+
fill: lime;
8+
}
9+
svg {
10+
width: 100px;
11+
height: 100px;
12+
border: 1px solid black;
13+
background: red;
14+
zoom: 400%;
15+
}
16+
</style>
17+
<body>
18+
<svg>
19+
<path d="m 5 5 h90 v90 h-90 z"></path>
20+
</svg>
21+
</body>
22+
</html>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!doctype html>
2+
<html class="reftest-wait">
3+
<title>Test of dynamic zoom on path.</title>
4+
<link rel="help"
5+
href="https://www.w3.org/TR/SVG2/paths.html#PathElement">
6+
<link rel="match" href="path-zoom-ref.html">
7+
<script src="/common/reftest-wait.js"></script>
8+
<script src="/common/rendering-utils.js"></script>
9+
<style type="text/css">
10+
path {
11+
stroke-width: 10px;
12+
stroke: blue;
13+
fill: lime;
14+
}
15+
svg {
16+
width: 100px;
17+
height: 100px;
18+
border: 1px solid black;
19+
background: red;
20+
}
21+
</style>
22+
<script>
23+
function Zoom() {
24+
document.getElementById("changeMyZoom").style.zoom = "400%";
25+
takeScreenshot();
26+
}
27+
</script>
28+
<body onload="waitForAtLeastOneFrame().then(Zoom)">
29+
<svg id="changeMyZoom">
30+
<path d="m 5 5 h90 v90 h-90 z"></path>
31+
</svg>
32+
</body>
33+
</html>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
The tests in this directory were imported from the W3C repository.
2+
Do NOT modify these tests directly in WebKit.
3+
Instead, create a pull request on the WPT github:
4+
https://github.com/web-platform-tests/wpt
5+
6+
Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
7+
8+
Do NOT modify or remove this file.
9+
10+
------------------------------------------------------------------------
11+
Properties requiring vendor prefixes:
12+
None
13+
Property values requiring vendor prefixes:
14+
None
15+
------------------------------------------------------------------------
16+
List of files:
17+
/LayoutTests/imported/w3c/web-platform-tests/svg/path/reftests/path-zoom-expected.html
18+
/LayoutTests/imported/w3c/web-platform-tests/svg/path/reftests/path-zoom-ref.html
19+
/LayoutTests/imported/w3c/web-platform-tests/svg/path/reftests/path-zoom.html

0 commit comments

Comments
 (0)