This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23528 - <canvas>: Aligning dashes with specific points in the path
Summary: <canvas>: Aligning dashes with specific points in the path
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other All
: P3 enhancement
Target Milestone: Needs Impl Interest
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-15 22:07 UTC by Ian 'Hixie' Hickson
Modified: 2019-03-29 20:31 UTC (History)
11 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2013-10-15 22:07:34 UTC
Consider: http://jsfiddle.net/ZxR6P/1/ http://goo.gl/rPN5Eg

It would be useful to be able to control, on a per-point basis (including points that are at the end/start of subpaths), when stroking a path with a pattern, whether:

 - the dash pattern should continue at that point
 - the dash pattern should reset at that point
 - the dash pattern should be adjusted somehow so that between this point
   and a subsequent point, the pattern is aligned so that the point coincide with
   the start/end (respectively) of an "on" dash in the pattern
Comment 1 Justin Novosad 2013-10-16 13:37:20 UTC
A potential use case: To have sides of a box that begin and end with whole dashes *and* the dashes at the corners of the box are joined.
Comment 2 Ian 'Hixie' Hickson 2014-07-29 00:03:08 UTC
What's the implementor interest on this? It's mostly a convenience API, though certainly the convenience is substantial compared to doing the calculation manually, especially for anything that isn't a rectangle...
Comment 3 Justin Novosad 2014-07-29 19:37:09 UTC
Mixed feelings. I believe the feature makes a lot of sense and it is relatively low hanging fruit, but I am not seeing any web developer driven interest for it.
Comment 4 rcabanie 2014-07-29 19:43:42 UTC
(In reply to Justin Novosad from comment #3)
> Mixed feelings. I believe the feature makes a lot of sense and it is
> relatively low hanging fruit, but I am not seeing any web developer driven
> interest for it.

I also don't see much interest.

I would be more interested in providing an API that adjusts dashes along a path so the corners look nice.
Comment 5 Domenic Denicola 2019-03-29 20:31:42 UTC
W3C Bugzilla is closing down, and as such we're closing all feature request bugs against HTML as "WONTFIX", at least wontfix-in-this-bugtracker.

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.