wpt / svg / painting / parsing / paint-order-valid.svg

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

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
e.style['paint-order'] = "normal" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "fill" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "stroke" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "markers" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "fill stroke" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "fill markers" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "stroke fill" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "stroke markers" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "markers fill" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "markers stroke" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "fill stroke markers" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "fill markers stroke" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "stroke fill markers" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "stroke markers fill" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "markers fill stroke" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['paint-order'] = "markers stroke fill" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""

/svg/painting/parsing/paint-order-valid.svg

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:h="http://www.w3.org/1999/xhtml"
     width="800px" height="800px">
  <title>SVG Painting: parsing paint-order with valid values</title>
  <metadata>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/painting.html#PaintOrderProperty"/>
    <h:meta name="assert" content="paint-order supports the full grammar 'normal | [ fill || stroke || markers ]'."/>
    <h:meta name="assert" content="paint-order uses the shortest serialization."/>
  </metadata>
  <g id="target"></g>
  <h:script src="/resources/testharness.js"/>
  <h:script src="/resources/testharnessreport.js"/>
  <h:script src="/css/support/parsing-testcommon.js"/>
  <script><![CDATA[

test_valid_value("paint-order", "normal");

test_valid_value("paint-order", "fill");
test_valid_value("paint-order", "stroke");
test_valid_value("paint-order", "markers");

test_valid_value("paint-order", "fill stroke", "fill");
test_valid_value("paint-order", "fill markers");
test_valid_value("paint-order", "stroke fill", "stroke");
test_valid_value("paint-order", "stroke markers");
test_valid_value("paint-order", "markers fill", "markers");
test_valid_value("paint-order", "markers stroke");

test_valid_value("paint-order", "fill stroke markers", "fill");
test_valid_value("paint-order", "fill markers stroke", "fill markers");
test_valid_value("paint-order", "stroke fill markers", "stroke");
test_valid_value("paint-order", "stroke markers fill", "stroke markers");
test_valid_value("paint-order", "markers fill stroke", "markers");
test_valid_value("paint-order", "markers stroke fill", "markers stroke");

  ]]></script>
</svg>