-
Notifications
You must be signed in to change notification settings - Fork 882
Color-contrast errors out on CSS color spaces in text-shadow #4080
Copy link
Copy link
Closed
Labels
color contrastColor contrast issuesColor contrast issuescommonsIssues in the common code (lib/commons)Issues in the common code (lib/commons)fixBug fixesBug fixesprA pr has been created for the issueA pr has been created for the issue
Milestone
Description
This results in an incomplete result from axe-core:
<h2 style="color: #ccc; text-shadow:
3px 3px oklch(60% 0.57 181),
0px 3px oklch(60% 0.57 181),
0px -3px oklch(60% 0.57 181),
3px 0px oklch(60% 0.57 181),
-3px 0px oklch(60% 0.57 181),
-3px -3px oklch(60% 0.57 181);
">Hello world</h2>This is the error:
Error: Unable to process text-shadows: oklch(0.6 0.57 181) 3px 3px 0px, oklch(0.6 0.57 181) 0px 3px 0px, oklch(0.6 0.57 181) 0px -3px 0px, oklch(0.6 0.57 181) 3px 0px 0px, oklch(0.6 0.57 181) -3px 0px 0px, oklch(0.6 0.57 181) -3px -3px 0px
A little while back we fixed this problem with use of color and background-color, but it seems we missed something on text-shadow. Might be good to go over the rest of the color commons, see if we missed anything else too.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
color contrastColor contrast issuesColor contrast issuescommonsIssues in the common code (lib/commons)Issues in the common code (lib/commons)fixBug fixesBug fixesprA pr has been created for the issueA pr has been created for the issue
Type
Fields
Give feedbackNo fields configured for issues without a type.