<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>277549</bug_id>
          
          <creation_ts>2024-08-02 06:17:32 -0700</creation_ts>
          <short_desc>Add &lt;image-1D&gt; stripes() function to border-color and outline-color properties</short_desc>
          <delta_ts>2024-12-30 18:59:38 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://drafts.csswg.org/css-images-4/#typedef-image-1d</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Josh Tumath">josh.tumath</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dev</cc>
    
    <cc>heycam</cc>
    
    <cc>josh.tumath</cc>
    
    <cc>koivisto</cc>
    
    <cc>pomerantsevp</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tsmd57</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2050293</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Tumath">josh.tumath</who>
    <bug_when>2024-08-02 06:17:32 -0700</bug_when>
    <thetext>The css-images-4 spec specifies a new type called &lt;image-1D&gt; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051649</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-08-09 06:18:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/133536559&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>