wpt / css / filter-effects / parsing / flood-opacity-valid.svg

Status: FAIL | Duration: 60ms | Subtests: 0/7 | 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['flood-opacity'] = "-1" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['flood-opacity'] = "0.5" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['flood-opacity'] = "3" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['flood-opacity'] = "-100%" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['flood-opacity'] = "50%" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['flood-opacity'] = "300%" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['flood-opacity'] = "calc(0.5 * sign(10em - 1px))" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""

/css/filter-effects/parsing/flood-opacity-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>Filter Effects Module Level 1: parsing flood-opacity with valid values</title>
  <metadata>
    <h:link rel="help" href="https://drafts.fxtf.org/filter-effects/#propdef-flood-opacity"/>
    <h:meta name="assert" content="flood-opacity supports the full grammar 'alpha-value'."/>
  </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("flood-opacity", "-1");
test_valid_value("flood-opacity", "0.5");
test_valid_value("flood-opacity", "3");
test_valid_value("flood-opacity", "-100%", "-1");
test_valid_value("flood-opacity", "50%", "0.5");
test_valid_value("flood-opacity", "300%", "3");
test_valid_value("flood-opacity", "calc(0.5 * sign(10em - 1px))");

  ]]></script>
</svg>