Bug 1460224 [wpt PR 10914] - Add basic test for 'paint-order'., a=testonly
authorEric Willigers <ewilligers@users.noreply.github.com>
Mon, 13 Aug 2018 18:26:01 +0000
changeset 431531 992b4da7462743d446f3f2da5f74d720a0cf57c0
parent 431530 f2f7d1e29ac6ea7a1d9ae907c1f2dd65948eece1
child 431532 408a34018d82c3ac2f8f1eaea1e154093bfee04c
push id34443
push usercsabou@mozilla.com
push dateWed, 15 Aug 2018 00:53:32 +0000
treeherdermozilla-central@b80906e2fbc9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1460224, 10914
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1460224 [wpt PR 10914] - Add basic test for 'paint-order'., a=testonly Automatic update from web-platform-testsMerge pull request #10914 from Tavmjong/paint-order Add basic test for 'paint-order'. -- wpt-commits: 9c84759a72f2b427160b8656bf31fe7c756c459e wpt-pr: 10914
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/svg/painting/reftests/paint-order-001-ref.svg
testing/web-platform/tests/svg/painting/reftests/paint-order-001.svg
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -185772,16 +185772,28 @@
       [
        "/svg/painting/reftests/paint-context-002-ref.svg",
        "=="
       ]
      ],
      {}
     ]
    ],
+   "svg/painting/reftests/paint-order-001.svg": [
+    [
+     "/svg/painting/reftests/paint-order-001.svg",
+     [
+      [
+       "/svg/painting/reftests/paint-order-001-ref.svg",
+       "=="
+      ]
+     ],
+     {}
+    ]
+   ],
    "svg/path/bearing/absolute.svg": [
     [
      "/svg/path/bearing/absolute.svg",
      [
       [
        "/svg/path/bearing/absolute-ref.svg",
        "=="
       ]
@@ -300681,16 +300693,21 @@
      {}
     ]
    ],
    "svg/painting/reftests/paint-context-002-ref.svg": [
     [
      {}
     ]
    ],
+   "svg/painting/reftests/paint-order-001-ref.svg": [
+    [
+     {}
+    ]
+   ],
    "svg/path/bearing/absolute-ref.svg": [
     [
      {}
     ]
    ],
    "svg/path/bearing/relative-ref.svg": [
     [
      {}
@@ -635306,16 +635323,24 @@
   "svg/painting/reftests/paint-context-002-ref.svg": [
    "446e8e3fca8ddc48707f8df678eec655e303086c",
    "support"
   ],
   "svg/painting/reftests/paint-context-002.svg": [
    "8a8a378488c818430f2cb21648c33b78655df33a",
    "reftest"
   ],
+  "svg/painting/reftests/paint-order-001-ref.svg": [
+   "6e1e016f6f5aa6bff5ca249d75e7b9dce8d11e12",
+   "support"
+  ],
+  "svg/painting/reftests/paint-order-001.svg": [
+   "c8d60bd5bf68d0dc5f56fb360acdd2bac5aa1aa2",
+   "reftest"
+  ],
   "svg/path/bearing/absolute-ref.svg": [
    "85b20271a1179500e145ef48260888978dea484a",
    "support"
   ],
   "svg/path/bearing/absolute.svg": [
    "0efc295f317c2f8ce3f85da7fa8cff34f0e3fa46",
    "reftest"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/painting/reftests/paint-order-001-ref.svg
@@ -0,0 +1,74 @@
+<svg id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg"
+  xmlns:xlink="http://www.w3.org/1999/xlink"
+  xmlns:html="http://www.w3.org/1999/xhtml">
+  <g id="testmeta">
+    <title>Paint: 'paint-order'</title>
+    <html:link rel="author"
+          title="Tavmjong Bah"
+          href="http://tavmjong.free.fr"/>
+  </g>
+
+  <style id="test-font" type="text/css">
+    /* Standard Font (if needed). */
+    @font-face {
+      font-family: FreeSans;
+      src: url("../fonts/FreeSans.woff") format("woff");
+    }
+    text {
+      font-family: FreeSans, sans-serif;
+      text-anchor: middle;
+      fill: black;
+    }
+    #title {
+      font-size: 24px;
+    }
+    .label {
+      font-size: 18px;
+    }
+  </style>
+
+  <defs>
+    <rect id="rectangle" width="2" height="2" style="fill:blue" />
+    <marker id="marker" style="overflow:visible" markerWidth="2" markerHeight="2" orient="auto" viewBox="0 0 2 2" refX="1" refY="1">
+      <use xlink:href="#rectangle"/>
+    </marker>
+    <path id="path" d="m -25,-25 0,50 50,0 0,-50 z"/>
+  </defs>
+
+  <g id="test-reference" font-size="16" style="fill:lavender;stroke:green;stroke-width:5px;marker:url(#marker)">
+    <g transform="translate(120,120)">
+      <use xlink:href="#path"/>
+    </g>
+    <g transform="translate(240,120)">
+      <use xlink:href="#path"/>
+    </g>
+    <g transform="translate(360,120)">
+      <use xlink:href="#path"/>
+    </g>
+    <g transform="translate(120,220)">
+      <use xlink:href="#path"/>
+    </g>
+    <g transform="translate(240,220)">
+      <use xlink:href="#path"/>
+      <use xlink:href="#path" style="stroke:none"/>
+    </g>
+    <g transform="translate(360,220)">
+      <use xlink:href="#path"/>
+      <use xlink:href="#path" style="marker:none"/>
+    </g>
+    <g transform="translate(120,320)">
+      <use xlink:href="#path"/>
+    </g>
+    <g transform="translate(240,320)">
+      <use xlink:href="#path"/>
+      <use xlink:href="#path" style="stroke:none"/>
+    </g>
+    <g transform="translate(360,320)">
+      <use xlink:href="#path"/>
+      <use xlink:href="#path" style="marker:none"/>
+    </g>
+  </g>
+
+</svg>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/painting/reftests/paint-order-001.svg
@@ -0,0 +1,55 @@
+<svg id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg"
+  xmlns:xlink="http://www.w3.org/1999/xlink"
+  xmlns:html="http://www.w3.org/1999/xhtml">
+  <g id="testmeta">
+    <title>Paint: 'paint-order'</title>
+    <html:link rel="author"
+          title="Tavmjong Bah"
+          href="http://tavmjong.free.fr"/>
+    <html:link rel="help"
+          href="https://www.w3.org/TR/SVG2/painting.html#PaintOrder"/>
+    <html:link rel="match"  href="paint-order-001-ref.svg" />
+  </g>
+
+  <style id="test-font" type="text/css">
+    /* Standard Font (if needed). */
+    @font-face {
+      font-family: FreeSans;
+      src: url("../fonts/FreeSans.woff") format("woff");
+    }
+    text {
+      font-family: FreeSans, sans-serif;
+      text-anchor: middle;
+      fill: black;
+    }
+    #title {
+      font-size: 24px;
+    }
+    .label {
+      font-size: 18px;
+    }
+  </style>
+
+  <defs>
+    <rect id="rectangle" width="2" height="2" style="fill:blue" />
+    <marker id="marker" style="overflow:visible" markerWidth="2" markerHeight="2" orient="auto" viewBox="0 0 2 2" refX="1" refY="1">
+      <use xlink:href="#rectangle"/>
+    </marker>
+    <path id="path" d="m -25,-25 0,50 50,0 0,-50 z"/>
+  </defs>
+
+  <g id="test-body-content" font-size="16" style="fill:lavender;stroke:green;stroke-width:5px;marker:url(#marker)">
+    <use xlink:href="#path" transform="translate(120,120)" style="" />
+    <use xlink:href="#path" transform="translate(240,120)" style="paint-order:normal" />
+    <use xlink:href="#path" transform="translate(360,120)" style="paint-order:fill stroke markers" />
+    <use xlink:href="#path" transform="translate(120,220)" style="paint-order:fill" />
+    <use xlink:href="#path" transform="translate(240,220)" style="paint-order:stroke" />
+    <use xlink:href="#path" transform="translate(360,220)" style="paint-order:markers" />
+    <use xlink:href="#path" transform="translate(120,320)" style="paint-order:fill stroke" />
+    <use xlink:href="#path" transform="translate(240,320)" style="paint-order:stroke markers" />
+    <use xlink:href="#path" transform="translate(360,320)" style="paint-order:markers fill" />
+  </g>
+
+</svg>