length-with-optional-unit

Simple Type Information

Source

<xs:simpleType name="length-with-optional-unit">
  <xs:restriction base="xs:string">
    <xs:pattern value="-?([0-9]+|[0-9]*\.[0-9]+)*(em|ex|px|in|cm|mm|pt|pc|%)?"/>
  </xs:restriction>
</xs:simpleType>