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 28217 - <canvas>: not clear if two polygon paths with a common edge should have no line visible
Summary: <canvas>: not clear if two polygon paths with a common edge should have no li...
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other All
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/multipag...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-15 14:18 UTC by contributor
Modified: 2019-03-29 21:33 UTC (History)
4 users (show)

See Also:
annevk: needinfo? (junov)


Attachments

Description contributor 2015-03-15 14:18:28 UTC
Specification: https://html.spec.whatwg.org/multipage/scripting.html
Multipage: https://html.spec.whatwg.org/multipage/#drawing-paths-to-the-canvas:dom-context-2d-fill
Complete: https://html.spec.whatwg.org/#drawing-paths-to-the-canvas:dom-context-2d-fill
Referrer: https://html.spec.whatwg.org/multipage/scripting.html

Comment:
It's not clear from the spec if two paths which describe two poligons with a
common edge, when render as a single solid polygon when using fill() on them.
In particular the spec does not seem to explain what implementation of
anti-aliasing should be used on edges, to make sure that there is no gap
between incident shapes.
For example http://jsfiddle.net/xgd03fyb/ in Chrome shows two triangles with a
visible artifact between them, while clearly the intention was to draw them as
a square. Is it a bug or a feature?

Posted from: 78.8.147.90
User agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36
Comment 1 Anne 2018-01-29 14:30:24 UTC
As all browsers show two triangles I suspect that's what we should define. Not sure how though.
Comment 2 Domenic Denicola 2019-03-29 21:33:03 UTC
https://github.com/whatwg/html/issues/4485