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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22674</bug_id>
          
          <creation_ts>2013-07-15 21:36:15 +0000</creation_ts>
          <short_desc>&lt;canvas&gt;: Aligning strokes inside or outside a path</short_desc>
          <delta_ts>2019-03-29 20:02:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Needs Impl Interest</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>d</cc>
    
    <cc>hober0</cc>
    
    <cc>ian</cc>
    
    <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90747</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-15 21:36:15 +0000</bug_when>
    <thetext>On Mon, 19 Jul 2010, Nick wrote:
&gt;
&gt; Canvas would benefit from a way to set stroke alignment. With the only
&gt; available alignment being center, which is not very useful, custom paths
&gt; have to be drawn to mimic inside and outside stroke alignment. That
&gt; workaround may give unwanted transparency on pixels between a path and
&gt; its stroke path once a path goes diagonal or curves.

On Mon, 19 Jul 2010, Mike Wilcox wrote:
&gt;
&gt; Wow, that would be so enormously useful. You make a shape, add a shape
&gt; inside of it that is 100x100, add a stroke, get the width and it&apos;s 101.
&gt; This &quot;error&quot; cascades, and shifts your items around on redraw. The math
&gt; workaround is not easy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93079</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-05 22:09:08 +0000</bug_when>
    <thetext>On Fri, 9 Aug 2013, Stephen White wrote:
&gt;
&gt; That&apos;s an interesting idea. I suppose the fully general solution would
&gt; be to have a &quot;stroke offset&quot;. E.g., with a stroke width of 4 and and
&gt; offset of 2 you&apos;d get &quot;outer&quot;, offset -2 you&apos;d get &quot;inner&quot;, offset 1
&gt; you&apos;d get 3 pixels outer and 1 pixel inner, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129669</commentid>
    <comment_count>2</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2019-03-29 20:02:02 +0000</bug_when>
    <thetext>W3C Bugzilla is closing down, and as such we&apos;re closing all feature request bugs against HTML as &quot;WONTFIX&quot;, at least wontfix-in-this-bugtracker. (We&apos;ve been told a read-only copy will remain online at these URLs.)

If you still think this feature is valuable, please feel free to open a new issue against https://github.com/whatwg/html/issues ; the community has gotten much more active and involved since the Bugzilla days, and you might get a more useful dialogue there.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>