<?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>180968</bug_id>
          
          <creation_ts>2017-12-19 01:17:10 -0800</creation_ts>
          <short_desc>Implement &quot;stroke-align:outset&quot; - single and multiple outside strokes for text</short_desc>
          <delta_ts>2025-01-09 11:19:08 -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>Safari 11</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></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="Tobi Reif">tobi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>jsnkuhn</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1383085</commentid>
    <comment_count>0</comment_count>
    <who name="Tobi Reif">tobi</who>
    <bug_when>2017-12-19 01:17:10 -0800</bug_when>
    <thetext>We need outside strokes for text, because the current centered strokes are not pretty - the intrude the font fill.

An image illustrating how centered strokes aren&apos;t pretty / don&apos;t do what typically is intended (leaving the fill of the font unaffected): 
https://twitter.com/TobiReif/status/942805851017969664

I hope you will implement stroke-align:outset.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1383119</commentid>
    <comment_count>1</comment_count>
    <who name="Tobi Reif">tobi</who>
    <bug_when>2017-12-19 04:40:58 -0800</bug_when>
    <thetext>It&apos;s being specified at https://www.w3.org/TR/fill-stroke-3/#propdef-stroke-align .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1383146</commentid>
    <comment_count>2</comment_count>
    <who name="Tobi Reif">tobi</who>
    <bug_when>2017-12-19 09:08:36 -0800</bug_when>
    <thetext>Note that this ticke / my request is only regarding &quot;stroke-align:outset&quot; for text.

At first, having the &quot;outset&quot; option for nothing but text (HTML and ideally also SVG) would be sufficient from my point of view. It would be a great start regarding implementation of that feature, as most people who need this option do need it for text (I&apos;m pretty sure).

Supporting &quot;outset&quot; for SVG paths etc can then get considered later.

Having &quot;outset&quot; for text strokes is overdue by many many years - it should&apos;ve been the default all along. Designers/developers almost never want (or expect) the stroke(s) to intrude the glyphs / to take away from the fill of the glyphs.

I (and many others) need this feature. eg:

Chris Coyer (of Codepen and css-tricks.com) in 2010 (seven years ago):
https://css-tricks.com/adding-stroke-to-web-text/
&quot;Only outside text stroke alignment looks any good at all to me. It&apos;s unfortunate, both for CSS and for Illustrator, that the unchangeable default is centered.&quot;

https://stackoverflow.com/questions/26634201/add-stroke-around-text-on-the-outside-with-css
&quot;Add stroke around text - on the outside - with css?&quot;
&quot;The -webkit-text-stroke doesn&apos;t support placing the stroke on the outside of the text&quot;

https://stackoverflow.com/questions/17484262/css-webkit-text-stroke-but-stroke-covers-font-color
&quot;Why [is] the webkit-text-stroke [...] covering [...] the font color?&quot;

https://css-tricks.com/text-stroke-stuck-middle/
&quot;When you set a stroke straddled over the designed edge of a character, you&apos;re losing the integrity of the shape.&quot;
&quot;And that&apos;s the trouble with text-stroke in CSS: you have no choice. It&apos;s center-aligned stroke only.&quot;

Also, bad workarounds exist.

We need a solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1383586</commentid>
    <comment_count>3</comment_count>
    <who name="Tobi Reif">tobi</who>
    <bug_when>2017-12-20 03:59:49 -0800</bug_when>
    <thetext>BTW, supporting &quot;stroke-align:outset&quot; only for non-transparent colors (at first) would be fine with me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774059</commentid>
    <comment_count>4</comment_count>
    <who name="Tobi Reif">tobi</who>
    <bug_when>2021-07-01 03:18:34 -0700</bug_when>
    <thetext>I still hope that Safari will implement &quot;stroke-align:outset&quot; so that we can have single and multiple outside strokes for text.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884208</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 14:10:29 -0700</bug_when>
    <thetext>Feature request.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884209</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-15 14:10:41 -0700</bug_when>
    <thetext>&lt;rdar://problem/97093437&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>