wpt / svg / text / parsing / inline-size-valid.svg

Status: PASS | Duration: 51ms | Subtests: 5/5 | 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['inline-size'] = "auto" should set the property valuePASS
e.style['inline-size'] = "0" should set the property valuePASS
e.style['inline-size'] = "10px" should set the property valuePASS
e.style['inline-size'] = "20%" should set the property valuePASS
e.style['inline-size'] = "calc(2em + 3ex)" should set the property valuePASS

/svg/text/parsing/inline-size-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 Text: parsing inline-size with valid values</title>
  <metadata>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/text.html#InlineSizeProperty"/>
    <h:link rel="help" href="https://drafts.csswg.org/css-logical/#dimension-properties"/>
    <h:meta name="assert" content="inline-size supports the full grammar 'auto | length-percentage'"/>
  </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("inline-size", "auto");

test_valid_value("inline-size", "0", "0px");
test_valid_value("inline-size", "10px");
test_valid_value("inline-size", "20%");
test_valid_value("inline-size", "calc(2em + 3ex)");

  ]]></script>
</svg>