<slot>
with display: inline-block
causes color-contrast to be incomplete
#4468
Labels
<slot>
with display: inline-block
causes color-contrast to be incomplete
#4468
Product
axe-core
via@axe-core/playwright
Product Version
No response
Latest Version
Issue Description
Expectation
Adding
display: inline-block
styling to a<slot>
element should not cause thecolor-contrast
rule to be incomplete.Actual
The
color-contrast
rule is incomplete with the warning:How to Reproduce
If you update
axe-test-fixtures/fixtures/shadow-dom.html
to include this new code:and add this line to your
axe-playwright.spec.ts
"with include shadow DOM" testAnd add an assertion for that new element. The test will fail, and you'll find the
color-contrast
rule will now be inresults.incomplete
.Additional context
I'm fairly new to this repo, so I suspect that the issue may be in axe-core but I'm not sure. Let me know if that's the case and that I need to move it there. 👍
The text was updated successfully, but these errors were encountered: