wpt / svg / painting / scripted / paint-order-computed-value-01.svg

Status: FAIL | Duration: 102ms | Subtests: 0/44 | Open test on wpt.live | wpt.fyi

Data from commit:
96ff533 Remove hidden nodes from the acccessibility tree (#823) (2026-09-07)

SubtestStatusMessage
'paint-order' computed style serialization, "normal" => "normal" (property)FAILassert_equals: normal expected "normal" but got ""
'paint-order' computed style serialization, "fill" => "fill" (property)FAILassert_equals: fill expected "fill" but got ""
'paint-order' computed style serialization, "stroke" => "stroke" (property)FAILassert_equals: stroke expected "stroke" but got ""
'paint-order' computed style serialization, "markers" => "markers" (property)FAILassert_equals: markers expected "markers" but got ""
'paint-order' computed style serialization, "fill stroke" => "fill" (property)FAILassert_equals: fill stroke expected "fill" but got ""
'paint-order' computed style serialization, "fill markers" => "fill markers" (property)FAILassert_equals: fill markers expected "fill markers" but got ""
'paint-order' computed style serialization, "stroke fill" => "stroke" (property)FAILassert_equals: stroke fill expected "stroke" but got ""
'paint-order' computed style serialization, "stroke markers" => "stroke markers" (property)FAILassert_equals: stroke markers expected "stroke markers" but got ""
'paint-order' computed style serialization, "markers fill" => "markers" (property)FAILassert_equals: markers fill expected "markers" but got ""
'paint-order' computed style serialization, "markers stroke" => "markers stroke" (property)FAILassert_equals: markers stroke expected "markers stroke" but got ""
'paint-order' computed style serialization, "fill stroke markers" => "fill" (property)FAILassert_equals: fill stroke markers expected "fill" but got ""
'paint-order' computed style serialization, "fill markers stroke" => "fill markers" (property)FAILassert_equals: fill markers stroke expected "fill markers" but got ""
'paint-order' computed style serialization, "stroke fill markers" => "stroke" (property)FAILassert_equals: stroke fill markers expected "stroke" but got ""
'paint-order' computed style serialization, "stroke markers fill" => "stroke markers" (property)FAILassert_equals: stroke markers fill expected "stroke markers" but got ""
'paint-order' computed style serialization, "markers fill stroke" => "markers" (property)FAILassert_equals: markers fill stroke expected "markers" but got ""
'paint-order' computed style serialization, "markers stroke fill" => "markers stroke" (property)FAILassert_equals: markers stroke fill expected "markers stroke" but got ""
'paint-order' computed style serialization, "foo" => "normal" (property)FAILassert_equals: foo expected "normal" but got ""
'paint-order' computed style serialization, "fill foo" => "normal" (property)FAILassert_equals: fill foo expected "normal" but got ""
'paint-order' computed style serialization, "stroke foo" => "normal" (property)FAILassert_equals: stroke foo expected "normal" but got ""
'paint-order' computed style serialization, "markers foo" => "normal" (property)FAILassert_equals: markers foo expected "normal" but got ""
'paint-order' computed style serialization, "normal foo" => "normal" (property)FAILassert_equals: normal foo expected "normal" but got ""
'paint-order' computed style serialization, "fill markers stroke foo" => "normal" (property)FAILassert_equals: fill markers stroke foo expected "normal" but got ""
'paint-order' computed style serialization, "normal" => "normal" (presentation attribute)FAILassert_equals: normal expected "normal" but got ""
'paint-order' computed style serialization, "fill" => "fill" (presentation attribute)FAILassert_equals: fill expected "fill" but got ""
'paint-order' computed style serialization, "stroke" => "stroke" (presentation attribute)FAILassert_equals: stroke expected "stroke" but got ""
'paint-order' computed style serialization, "markers" => "markers" (presentation attribute)FAILassert_equals: markers expected "markers" but got ""
'paint-order' computed style serialization, "fill stroke" => "fill" (presentation attribute)FAILassert_equals: fill stroke expected "fill" but got ""
'paint-order' computed style serialization, "fill markers" => "fill markers" (presentation attribute)FAILassert_equals: fill markers expected "fill markers" but got ""
'paint-order' computed style serialization, "stroke fill" => "stroke" (presentation attribute)FAILassert_equals: stroke fill expected "stroke" but got ""
'paint-order' computed style serialization, "stroke markers" => "stroke markers" (presentation attribute)FAILassert_equals: stroke markers expected "stroke markers" but got ""
'paint-order' computed style serialization, "markers fill" => "markers" (presentation attribute)FAILassert_equals: markers fill expected "markers" but got ""
'paint-order' computed style serialization, "markers stroke" => "markers stroke" (presentation attribute)FAILassert_equals: markers stroke expected "markers stroke" but got ""
'paint-order' computed style serialization, "fill stroke markers" => "fill" (presentation attribute)FAILassert_equals: fill stroke markers expected "fill" but got ""
'paint-order' computed style serialization, "fill markers stroke" => "fill markers" (presentation attribute)FAILassert_equals: fill markers stroke expected "fill markers" but got ""
'paint-order' computed style serialization, "stroke fill markers" => "stroke" (presentation attribute)FAILassert_equals: stroke fill markers expected "stroke" but got ""
'paint-order' computed style serialization, "stroke markers fill" => "stroke markers" (presentation attribute)FAILassert_equals: stroke markers fill expected "stroke markers" but got ""
'paint-order' computed style serialization, "markers fill stroke" => "markers" (presentation attribute)FAILassert_equals: markers fill stroke expected "markers" but got ""
'paint-order' computed style serialization, "markers stroke fill" => "markers stroke" (presentation attribute)FAILassert_equals: markers stroke fill expected "markers stroke" but got ""
'paint-order' computed style serialization, "foo" => "normal" (presentation attribute)FAILassert_equals: foo expected "normal" but got ""
'paint-order' computed style serialization, "fill foo" => "normal" (presentation attribute)FAILassert_equals: fill foo expected "normal" but got ""
'paint-order' computed style serialization, "stroke foo" => "normal" (presentation attribute)FAILassert_equals: stroke foo expected "normal" but got ""
'paint-order' computed style serialization, "markers foo" => "normal" (presentation attribute)FAILassert_equals: markers foo expected "normal" but got ""
'paint-order' computed style serialization, "normal foo" => "normal" (presentation attribute)FAILassert_equals: normal foo expected "normal" but got ""
'paint-order' computed style serialization, "fill markers stroke foo" => "normal" (presentation attribute)FAILassert_equals: fill markers stroke foo expected "normal" but got ""

/svg/painting/scripted/paint-order-computed-value-01.svg

<svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml">
  <title>'paint-order' computed style serialization</title>
  <h:script src="/resources/testharness.js"/>
  <h:script src="/resources/testharnessreport.js"/>
  <text id="text" x="100" y="100"/>
  <script><![CDATA[
    'use strict';

    function make_tests(check, type) {
      let tests = [
        // Single keyword
        ["normal", "normal"],
        ["fill", "fill"],
        ["stroke", "stroke"],
        ["markers", "markers"],
        // Two keywords
        ["fill stroke", "fill"],
        ["fill markers", "fill markers"],
        ["stroke fill", "stroke"],
        ["stroke markers", "stroke markers"],
        ["markers fill", "markers"],
        ["markers stroke", "markers stroke"],
        // Three keywords
        ["fill stroke markers", "fill"],
        ["fill markers stroke", "fill markers"],
        ["stroke fill markers", "stroke"],
        ["stroke markers fill", "stroke markers"],
        ["markers fill stroke", "markers"],
        ["markers stroke fill", "markers stroke"],
        // Invalid
        ["foo", "normal"],
        ["fill foo", "normal"],
        ["stroke foo", "normal"],
        ["markers foo", "normal"],
        ["normal foo", "normal"],
        ["fill markers stroke foo", "normal"],
      ];
      for (let [value, expected] of tests) {
        test(() => {
          check(value, expected);
        }, `${document.title}, "${value}" => "${expected}" (${type})`);
      }
    }

    const text = document.getElementById("text");

    make_tests((value, expected) => {
      text.setAttribute("style", "paint-order: " + value);
      let actual = getComputedStyle(text).paintOrder;
      text.removeAttribute("style");
      assert_equals(actual, expected, value);
    }, "property");

    make_tests((value, expected) => {
      text.setAttribute("paint-order", value);
      let actual = getComputedStyle(text).paintOrder;
      text.removeAttribute("paint-order");
      assert_equals(actual, expected, value);
    }, "presentation attribute");
  ]]>
  </script>
</svg>