Skip to content

Commit

Permalink
Don't warn about unsupported text-indent etc. on inline elements
Browse files Browse the repository at this point in the history
  • Loading branch information
bertfrees committed Jun 21, 2016
1 parent c81f70a commit 054cdbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@

<xsl:function name="css:is-inherited" as="xs:boolean">
<xsl:param name="property" as="xs:string"/>
<xsl:sequence select="boolean(index-of($css:inherited-properties, $property))"/>
<xsl:sequence select="$property=$css:inherited-properties"/>
</xsl:function>

<xsl:function name="css:applies-to" as="xs:boolean">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
<!--
TODO: move to css:new-definition?
-->
<xsl:if test="not($valid) and not($css:property/@value=('inherit','initial'))">
<xsl:if test="not($valid)
and not($css:property/@value=('inherit','initial'))
and not(css:is-inherited($css:property/@name))">
<xsl:message select="concat($css:property/@name,': ',$css:property/@value,' not supported (display: ',$context/@type,')')"/>
</xsl:if>
<xsl:sequence select="$valid"/>
Expand Down

0 comments on commit 054cdbf

Please sign in to comment.