diff options
Diffstat (limited to 'testing/web-platform/tests/svg/path/bearing')
6 files changed, 75 insertions, 0 deletions
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 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"> + <style> + path { + stroke-width: 3; + stroke: blue; + } + </style> + <path d="M 20 150 v -120 h 140 v 120 z" /> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"> + <metadata> + <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/svg-paths/#PathDataBearingCommands"/> + <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/SVG2/paths.html#PathDataBearingCommands"/> + <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://svgwg.org/svg2-draft/changes.html#paths"/> + <link xmlns="http://www.w3.org/1999/xhtml" rel="match" href="absolute-ref.svg"/> + <meta xmlns="http://www.w3.org/1999/xhtml" name="assert" content="path element with B commands renders correctly."/> + </metadata> + <style> + path { + stroke-width: 3; + stroke: blue; + } + </style> + <path d="M 20 150 B -90 h 120 B 0 h 140 B 90 h 120 z" /> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"> + <style> + path { + stroke-width: 3; + stroke: blue; + } + </style> + <path d="M 20 150 v -120 h 140 v 120 z" /> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"> + <metadata> + <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/svg-paths/#PathDataBearingCommands"/> + <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/SVG2/paths.html#PathDataBearingCommands"/> + <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://svgwg.org/svg2-draft/changes.html#paths"/> + <link xmlns="http://www.w3.org/1999/xhtml" rel="match" href="absolute-ref.svg"/> + <meta xmlns="http://www.w3.org/1999/xhtml" name="assert" content="path element with b commands renders correctly."/> + </metadata> + <style> + path { + stroke-width: 3; + stroke: blue; + } + </style> + <path d="M 20 150 b -90 h 120 b 90 h 140 b 90 h 120 z" /> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"> + <style> + path { + stroke-width: 3; + stroke: blue; + } + </style> + <path d="M 25 50 h 10 m 10 0 h 10 m 10 0 h 10" /> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"> + <metadata> + <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/svg-paths/#PathDataBearingCommands"/> + <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/SVG2/paths.html#PathDataBearingCommands"/> + <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://svgwg.org/svg2-draft/changes.html#paths"/> + <link xmlns="http://www.w3.org/1999/xhtml" rel="match" href="zero-ref.svg"/> + <meta xmlns="http://www.w3.org/1999/xhtml" name="assert" content="path element with bearing 0 renders correctly."/> + </metadata> + <style> + path { + stroke-width: 3; + stroke: blue; + } + </style> + <path d="M 25 50 h 10 B 0 m 10 0 h 10 b 0 m 10 0 h 10" /> +</svg> |