WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
277549
Add <image-1D> stripes() function to border-color and outline-color properties
https://bugs.webkit.org/show_bug.cgi?id=277549
Summary
Add <image-1D> stripes() function to border-color and outline-color properties
Josh Tumath
Reported
2024-08-02 06:17:32 PDT
The css-images-4 spec specifies a new type called <image-1D> which defines the new stripes() function. The new type can be used on the outline-color and border-color properties. It allows borders and outlines to be made up of multiple sets of colours. The author has control over the thickness of each stripe. The stripes() function is particularly important for creating accessible focus ring designs. By using multiple colours like black and white, the author can ensure that their focus ring will be visible against any background. For example: outline-color: stripes(red 1fr, green 2fr, blue 2px); The thickness value can be omitted, implying a value of 1fr: outline-color: stripes(black, white); Specifications:
https://drafts.csswg.org/css-images-4/#typedef-image-1d
https://drafts.csswg.org/css-borders-4/#border-color
https://drafts.csswg.org/css-ui-4/#outline-color
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-08-09 06:18:12 PDT
<
rdar://problem/133536559
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug