You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Axe-core should not just look at whether or not !important is used, but also whether or not the value is below the threshold WCAG sets for it. For example the following should not fail the avoid-inline-spacing rule, because 0.15em is sufficient to satisfy WCAG:
<pstyle="letter-spacing: 0.15em !important">
The toy brought back fond memories of being lost in the rain forest.
</p>
There are quite a few ACT examples axe-core is getting wrong because it's not considering the value, or how it's set:
Validated with the latest develop branch code base, with the script:
<!-- Letter spacing in style attributes is not !important -->
<p style="letter-spacing: 0.15em !important">
The toy brought back fond memories of being lost in the rain forest.
</p>
<title>Passed Example 2</title>
</head>
<body>
<p style="letter-spacing: 0.15em !important">
The toy brought back fond memories of being lost in the rain forest.
</p>
</body>
<title>Passed Example 3</title>
<style>
p {
font-size: 25px;
}
</style>
<p style="letter-spacing: 3px !important">
The toy brought back fond memories of being lost in the rain forest.
</p>
<p style="letter-spacing: 0.1em !important; letter-spacing: 0.15em !important">
The toy brought back fond memories of being lost in the rain forest.
</p>
<p style="letter-spacing: 0.15em !important; letter-spacing: 0.1em">
The toy brought back fond memories of being lost in the rain forest.
</p>
<p style="letter-spacing: 0.1em">
<span style="letter-spacing: inherit !important;">
The toy brought back fond memories of being lost in the rain forest.
</span>
</p>
<title>Inapplicanle ex</title>
<p style="position: absolute; top: -999em; letter-spacing: 0.1em !important;">
The toy brought back fond memories of being lost in the rain forest.
</p>
Axe-core should not just look at whether or not
!important
is used, but also whether or not the value is below the threshold WCAG sets for it. For example the following should not fail theavoid-inline-spacing
rule, because 0.15em is sufficient to satisfy WCAG:There are quite a few ACT examples axe-core is getting wrong because it's not considering the value, or how it's set:
Letter spacing in
style
attributes is not!important
Word spacing in
style
attributes is not!important
The text was updated successfully, but these errors were encountered: