Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas stroke(): Subpaths of length 0 should render their line caps. #1079

Open
junov opened this issue Apr 20, 2016 · 13 comments
Open

Canvas stroke(): Subpaths of length 0 should render their line caps. #1079

junov opened this issue Apr 20, 2016 · 13 comments
Assignees
Labels
clarification Standard could be clearer topic: canvas

Comments

@junov
Copy link
Member

junov commented Apr 20, 2016

The spec is currently inconsistent with itself.

Step 3 of the "trace a path" algorithm says: "Remove from path any subpaths containing no lines (i.e. subpaths with just one point)."

In step 9, in the part that explains line caps, it says: "Points with no lines coming out of them must have two caps placed back-to-back as if it was really two points connected to each other by an infinitesimally short straight line in the direction of the point's directionality (as defined above)."

Points with no lines coming out of them should never occur at step 9 since those subpaths are supposed to be pruned in step 3. This is confusing.

Currently, implementations are not compatible.
Gecko and Edge will draw back to back line caps for a zero-length subpath
WebKit and Blink draw nothing.

From developer feedback on the chromium issue tracker, it seems that drawing back to back line caps is desired behavior: https://bugs.chromium.org/p/chromium/issues/detail?id=577655
Blink is being changed to match the behaviours of Gecko and Edge.

Any objections to removing step 3 of the "trace a path" algorithm?
https://html.spec.whatwg.org/multipage/scripting.html#trace-a-path

@junov junov self-assigned this Apr 20, 2016
@junov junov added clarification Standard could be clearer topic: canvas labels Apr 20, 2016
@junov
Copy link
Member Author

junov commented Apr 20, 2016

Also, rendering back to back lineCaps on zero-length subpaths would match the behavior of SVG path rendering.

@domenic
Copy link
Member

domenic commented Apr 20, 2016

It sounds like there's a compelling argument in favor of removing that step, so works for me. It would be good to get a WebKit canvas person's take to make sure they are OK eventually aligning with the majority and with the proposed spec, but I don't think that should block a PR.

@junov
Copy link
Member Author

junov commented Apr 20, 2016

I took a closer look at this to make sure there aren't any weird edge case side-effects from removing step 3:

  • I think Step 2 needs to be clarified to indicate that in the case of a subpath whose segments all have zero length, the subpath itself must not be pruned (it survives as just a point). Also, do we even need step 2, I don't see how it affects the results of this algorithm
  • The definition of "directionality" is problematic for subpaths that are just a point: "The point has a directionality for the purposes of drawing line caps (see below). The directionality is the direction that the original line had at that point (i.e. when L was defined above)." In the case where we are using square line caps the orientation of the line caps matter.

If we want to match SVG, this is what it says for square line caps: "If a subpath has zero length, then the resulting effect is that the stroke for that subpath consists solely of a square with side length equal to the stroke width, centered at the subpath's point, and oriented such that two of its sides are parallel to the effective tangent at that subpath's point. See ‘path’ element implementation notes for details on how to determine the tangent at a zero-length subpath." [1]
I followed the link to the implementation notes [2] and was unable to find anything relevant to "effective tangents" on that page.

Summoning @dirkschulze : Help!

References:
[1] https://www.w3.org/TR/svg-strokes/#LineCaps
[2] https://svgwg.org/svg2-draft/implnote.html#PathElementImplementationNotes

@annevk
Copy link
Member

annevk commented Jan 17, 2018

cc @whatwg/canvas

@annevk
Copy link
Member

annevk commented Jan 29, 2018

@AmeliaBR could you maybe help with the SVG question in #1079 (comment) or know someone who can?

@AmeliaBR
Copy link

The SVG behavior is that a zero-length path segment is drawn with line caps, but a single point (e.g., created by two consecutive move-to commands) is not.

There's a detailed algorithm in SVG 2, and it includes some edge case details (like what is the direction of a zero-length path, and what to do with a zero-length close path) that have been clarified since SVG 1.1. Browsers are mostly consistent, but an updated test suite for all the edge cases is still required.


Current behavior:

Example showing the same path in SVG and Canvas with square line caps: https://codepen.io/AmeliaBR/pen/KQKjXJ

The path includes:

  • an extra point with no path at all (from consecutive move-to commands) (80,20, top-right)
  • a zero-length horizontal line (80,80, bottom-right)
  • a zero-length arc (20,80, bottom-left)
  • a zero-length closepath segment (20,20, top-left)
  • a completely closed zero-length path (50,50, center)

As expected, all browsers draw line-caps for most zero-length SVG path segments, but with some quirks (Edge skips the zero-length arc segment, and Safari draws two double-linecap squares at different orientations for each--not sure what's going on there.)

Chrome and Safari both draw line-caps for the zero-length path segments in canvas (although they disagree on orientation & for reasons I don't understand Safari initializes a canvas to solid black).

Firefox and Edge do not draw any of the zero-length segment linecaps in canvas, conforming with the current canvas spec. (Note that I'm using a polyfill for Edge; the thin black square confirms that it can draw from a path data string.)


My opinion:

I believe it would be preferable to authors (and maybe even convenient for implementers) if canvas stroking behavior was consistent with SVG behavior, unless there is a legacy reason to maintain a difference. Since some major implementations do not match the current canvas spec, I doubt there would be a significant compat issue with changing it.

@annevk
Copy link
Member

annevk commented Jan 31, 2018

I tend to agree. (I think it would be great if eventually SVG and canvas could use a shared underlying model for paths, instead of having separate descriptions that are somehow magically intertwined (canvas accepts SVG paths after all). CSS needs this too to define its various path-related things, some of which seemingly accept SVG path syntax already.)

@fserb
Copy link
Contributor

fserb commented Nov 23, 2020

bumping this, as we seem to have stumbled upon a similar problem.
It seems that the current browser behavior is non compatible. As Firefox is doing what SVG does (drawing), while Chrome only draws if there's a moveTo/lineTo to the same point, while Safari never draws.

We are planning to change behavior to match Firefox and SVG.

@jfkthame
Copy link

bumping this, as we seem to have stumbled upon a similar problem. It seems that the current browser behavior is non compatible. As Firefox is doing what SVG does (drawing), while Chrome only draws if there's a moveTo/lineTo to the same point, while Safari never draws.

We are planning to change behavior to match Firefox and SVG.

@fserb I notice that in https://bugs.chromium.org/p/chromium/issues/detail?id=644067, this behavior was recently changed in Blink -- but not in the way you suggest here, rather the opposite. I think that's regrettable, as it's a significant step away from the goal of a common canvas2d/svg rendering model that people in the discussion here seemed to agree was desirable.

Can you perhaps raise this with the concerned engineers/teams, and maybe get people to reconsider that change?

@Kaiido
Copy link
Member

Kaiido commented Aug 7, 2023

I believe the original comment was a bit mislead.

Points with no lines coming out of them should never occur at step 9 since those subpaths are supposed to be pruned in step 3. This is confusing.

In the previous step (8), the line dash algorithm can create such points, and these are the ones that step 9 has to handle.

So the specs made sense, but the current behavior is anyway too far from being interoperable even today, and I won't be arguing that keeping the step 3 is the best move. I guess going as close as possible to SVG would be good, but most implementations are relatively far from it.

I ran a few quick tests to see how bad the discrepancies are between implementations (along with their SVG counter parts), and it's pretty bad. Even with the latest changes done in Chrome Canary. Also even SVGs implementations aren't really 100% interoperable in the way they render line-dashes. I didn't check what SVG specs really ask there. And my reading of the canvas specs might be mislead too in some cases.

Toggle to see the results:

JSFiddle | Graphic results

Rendering of zero-length sub-paths

moveTo (✅)

Removed everywhere, in accordance with the specs, step 3.

moveTo + moveTo (✅)

Removed everywhere, in accordance with the specs, step 3.

moveTo + lineTo (❌)

Kept in Chrome stable & Safari - Removed in Firefox and Canary - Kept in SVG everywhere.
Specs ask to prune zero-length line segments. Not 100% sure but I take it to mean this should not be rendered, in contradiction with apparent SVG behavior.

moveTo + closePath (❌)

Kept in Chrome stable - Removed in Firefox, Safari, and Canary - Kept in SVG everywhere.
Specs ask to remove single points subpaths, should not render in contradiction with apparent SVG behavior.

moveTo + moveTo + closePath (❌)

Same as moveTo + closePath.

moveTo + lineTo + closePath (✅*)

Same as moveTo + closePath.
Regarding the specs there is the same reserves as with moveTo + lineTo.

moveTo + lineTo(1) (✅)

Kept everywhere. Line cap is drawn on both sides of the point.

moveTo + lineTo(1) + closePath (✅)

Kept everywhere. Line cap is not drawn on any side of the point. (Safari has a weird 1px dot in the middle, in both canvas and SVG).
According to the specs, merged points of an enclosed path should be converted to joins (step 5) so no line cap should be drawn.

moveTo + lineTo + draw more (❌)

Kept in Chrome stable and Canary. Removed in Firefox and Safari. Kept in SVG everywhere.
Specs ask to remove single points subpaths, should not render in contradiction with apparent SVG behavior.
Note: Canary's behavior is not consistent with itself in the simpler moveTo + lineTo test case, while all other UAs are.

lineTo x4 + closePath + moveTo + closePath (❌)

Kept in Chrome stable, Canary, and Firefox... Removed in Safari. Kept in SVG everywhere.
Specs ask to remove single points subpaths, should not render in contradiction with apparent SVG behavior.
Note: Firefox is not consistent with itself in the simpler moveTo + lineTo + draw more. I have no clue why to be honest...


lineTo x4 + closePath lineDash([0, width]) (✅)

Kept everywhere. (Tests single points segments are correctly rendered when they're created from the stroke-dash algorithm).


Rendering of line-dash caps

lineTo x4 + closePath lineDash([length, 0]) (✅*)

Only the top left corner has its cap rendered everywhere. Firefox's SVG does not render the top-left cap.
The specs ask that all the joins are removed and two points are added at the start and end position of the subpath.

lineTo x4 + closePath lineDash([length, length]) (❌)

Chrome (stable and Canary), and Safari render the top left corner's cap. Firefox doesn't. Same varying results in SVG.
Should be the same as lineTo x4 + closePath lineDash([length, 0])

repeat2(lineTo x4 + closePath) lineDash([length / 2, length / 2]) (✅)

Top-left corner's cap is rendered everywhere, even in Firefox, even in SVG.

lineTo x4 + closePath lineDash([width, 0]) (❌)

Top-left corner's cap is not rendered in Chrome (stable & Canary) in both canvas and SVG. Rendered in Firefox and Safari (canvas & SVG).
I think it's supposed to be rendered.

lineTo x1 + closePath lineDash([length, 0]) (✅*)

Left cap is rendered everywhere, but in Firefox's SVG. Right cap is not rendered anywhere. (Safari has a weird 1px glitch in the middle).
The line-dash cuts the enclosed path at the beginning.

lineTo x1 + closePath lineDash([length / 2, 0]) (❌)

Left cap is not rendered in Chrome (both) and Firefox, both in Canvas and in SVG. Safari renders it. Right cap is rendered everywhere, but in Firefox's SVG.
A bit unsure on this one, but I'd expect the line-dash to cut the path in both ends and thus to have two caps.

lineTo x4 lineDash([length / 4, length / 4]) (✅*)

Renders caps on both ends of both segments everywhere, but with a compositing bug in Safari (looks like the stroke filling crosses itself).

@yiyix
Copy link
Contributor

yiyix commented Sep 11, 2023

Hi Kelsey, @kdashg, since this discussion is generally positive to render the line end-caps for empty paths, I am tempting to change the spec to reflect it (#9663). What's the firefox perspective on it?

Note that Firefox's current behavior almost matches with the spec after change (https://wpt.fyi/results/html/canvas/offscreen/path-objects?label=master&label=experimental&aligned&q=2d.path.stroke.prune, failling the test meaning draw the line caps).

@kdashg
Copy link

kdashg commented Sep 12, 2023

Mozilla think this is a good idea to standardize on yes-drawing. When we tried to match spec with this, we had web-compat issues and reverted to our draw-zero-subpath-end-caps behavior.

Edge and Safari will begin to fail these tests if this change is made. Would you update behavior to match a changed spec (and tests), @annevk (Apple) and @RafaelCintron (Microsoft)?

aarongable pushed a commit to chromium/chromium that referenced this issue Sep 15, 2023
As discussed in the github issue, whatwg/html#1079, it's generally agreed to skip drawing line caps for closed paths. This will also fix the test
2d.path.stroke.prune.rect.html.

Bug: 644067

Change-Id: Ic31ae8311262da56101a59600972f20d306a668b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4864280
Commit-Queue: Yi Xu <yiyix@google.com>
Reviewed-by: Justin Novosad <junov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1197284}
@annevk
Copy link
Member

annevk commented Sep 19, 2023

I discussed this with colleagues and it seems reasonable to us.

aarongable pushed a commit to chromium/chromium that referenced this issue Oct 2, 2023
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This will also fix the test
2d.path.stroke.prune.closed.html.

Bug: 644067

Change-Id: I6e1ae0c31384e98c39e22f315214a14d9ce791d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4864061
Reviewed-by: Justin Novosad <junov@chromium.org>
Commit-Queue: Yi Xu <yiyix@google.com>
Cr-Commit-Position: refs/heads/main@{#1204192}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Oct 6, 2023
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061
It fixes the extra line caps issue for closed path with other paths.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Oct 6, 2023
As discussed in the github issue, whatwg/html#1079, it's generally agreed to skip drawing line caps for closed paths. Add test cases for full
ellipse path.

Bug: 644067

Change-Id: I3fde274f4b15a96d4ecaa593b0317c585eeb4a25
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Oct 6, 2023
As discussed in the github issue, whatwg/html#1079, it's generally agreed to skip drawing line caps for closed paths. Add test cases for full
ellipse path.

Bug: 644067

Change-Id: I3fde274f4b15a96d4ecaa593b0317c585eeb4a25
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Oct 6, 2023
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061
It fixes the extra line caps issue for closed path with other paths.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Oct 6, 2023
As discussed in the github issue, whatwg/html#1079, it's generally agreed to skip drawing line caps for closed paths. Add test cases for full
ellipse path.

Bug: 644067

Change-Id: I3fde274f4b15a96d4ecaa593b0317c585eeb4a25
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Oct 9, 2023
As discussed in the github issue, whatwg/html#1079, it's generally agreed to skip drawing line caps for closed paths. Add test cases for full
ellipse path.

Bug: 644067

Change-Id: I3fde274f4b15a96d4ecaa593b0317c585eeb4a25
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this issue Oct 30, 2023
…e paths", a=testonly

Automatic update from web-platform-tests
Revert "Skip line caps for closed ellipse paths"

This reverts commit a7c44e6c2a28134ad01add05c3a0b7ec2f6e441a.

Reason for revert: line caps for closed subpath are supposed to be
skipped. But full ellipse are arcs, not closed paths according to
spec, https://html.spec.whatwg.org/multipage/canvas.html#ellipse-method-steps.

Original change's description:
> Skip line caps for closed ellipse paths
>
> As discussed in the github issue, whatwg/html#1079, it's generally agreed to skip drawing line caps for closed paths. Add test cases for full
> ellipse path.
>
> Bug: 644067
>
> Change-Id: I3fde274f4b15a96d4ecaa593b0317c585eeb4a25
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4919559
> Commit-Queue: Yi Xu <yiyixgoogle.com>
> Reviewed-by: Justin Novosad <junovchromium.org>
> Cr-Commit-Position: refs/heads/main{#1208078}

Bug: 644067
Change-Id: Idc4810290d431edc608eaf2cd9d3a35e7f83f9aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4935432
Reviewed-by: Jean-Philippe Gravel <jpgravelchromium.org>
Bot-Commit: Rubber Stamper <rubber-stamperappspot.gserviceaccount.com>
Commit-Queue: Yi Xu <yiyixchromium.org>
Cr-Commit-Position: refs/heads/main{#1209057}

--

wpt-commits: bbd6ebee4588e0eefef6a63fbb4ceb668d4fe33a
wpt-pr: 42511

UltraBlame original commit: 90b22e81ce378846fa924c1a836e0ae6adf58a71
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this issue Oct 30, 2023
… a=testonly

Automatic update from web-platform-tests
Skip line caps for closed ellipse paths

As discussed in the github issue, whatwg/html#1079, it's generally agreed to skip drawing line caps for closed paths. Add test cases for full
ellipse path.

Bug: 644067

Change-Id: I3fde274f4b15a96d4ecaa593b0317c585eeb4a25
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4919559
Commit-Queue: Yi Xu <yiyixgoogle.com>
Reviewed-by: Justin Novosad <junovchromium.org>
Cr-Commit-Position: refs/heads/main{#1208078}

--

wpt-commits: 098e71af4436d7d0840d42465c4d20046a2e08f7
wpt-pr: 42403

UltraBlame original commit: 8b48bec1373ec6ef99682e810df8ad04531671e1
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this issue Oct 30, 2023
…e paths", a=testonly

Automatic update from web-platform-tests
Revert "Skip line caps for closed ellipse paths"

This reverts commit a7c44e6c2a28134ad01add05c3a0b7ec2f6e441a.

Reason for revert: line caps for closed subpath are supposed to be
skipped. But full ellipse are arcs, not closed paths according to
spec, https://html.spec.whatwg.org/multipage/canvas.html#ellipse-method-steps.

Original change's description:
> Skip line caps for closed ellipse paths
>
> As discussed in the github issue, whatwg/html#1079, it's generally agreed to skip drawing line caps for closed paths. Add test cases for full
> ellipse path.
>
> Bug: 644067
>
> Change-Id: I3fde274f4b15a96d4ecaa593b0317c585eeb4a25
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4919559
> Commit-Queue: Yi Xu <yiyixgoogle.com>
> Reviewed-by: Justin Novosad <junovchromium.org>
> Cr-Commit-Position: refs/heads/main{#1208078}

Bug: 644067
Change-Id: Idc4810290d431edc608eaf2cd9d3a35e7f83f9aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4935432
Reviewed-by: Jean-Philippe Gravel <jpgravelchromium.org>
Bot-Commit: Rubber Stamper <rubber-stamperappspot.gserviceaccount.com>
Commit-Queue: Yi Xu <yiyixchromium.org>
Cr-Commit-Position: refs/heads/main{#1209057}

--

wpt-commits: bbd6ebee4588e0eefef6a63fbb4ceb668d4fe33a
wpt-pr: 42511

UltraBlame original commit: 90b22e81ce378846fa924c1a836e0ae6adf58a71
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jan 7, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061
It fixes the extra line caps issue for closed path with other paths.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jan 8, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061
It fixes the extra line caps issue for closed path with other paths.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jan 8, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jan 11, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jan 11, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jan 12, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jan 12, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jan 15, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
aarongable pushed a commit to chromium/chromium that referenced this issue Jan 16, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
Commit-Queue: Yi Xu <yiyix@google.com>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1247735}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jan 16, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
Commit-Queue: Yi Xu <yiyix@google.com>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1247735}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jan 19, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
Commit-Queue: Yi Xu <yiyix@google.com>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1247735}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue Jan 22, 2024
Automatic update from web-platform-tests
Remove empty closed paths

As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
Commit-Queue: Yi Xu <yiyix@google.com>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1247735}

--
Fix the inconsistency between yaml and generated files

--

wpt-commits: 3b5bcfe6fae26f8de7e5086bf9d5794dbefd456d, 3aa1c64bf887fa1ffa2fe960f43e67a2cc65f0b0
wpt-pr: 42385
ErichDonGubler pushed a commit to ErichDonGubler/firefox that referenced this issue Jan 23, 2024
Automatic update from web-platform-tests
Remove empty closed paths

As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
Commit-Queue: Yi Xu <yiyix@google.com>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1247735}

--
Fix the inconsistency between yaml and generated files

--

wpt-commits: 3b5bcfe6fae26f8de7e5086bf9d5794dbefd456d, 3aa1c64bf887fa1ffa2fe960f43e67a2cc65f0b0
wpt-pr: 42385
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Feb 2, 2024
This reverts commit 572074cb06425797e7e110511db405134cf67e2f.

Reason for revert:
caused regression bug: crbug.com/1521614

Original change's description:
> Remove empty closed paths
>
> As discussed in the github issue,
> whatwg/html#1079, it's generally agreed to
> skip drawing line caps for closed paths. This is a follow up cl of:
> https://chromium-review.googlesource.com/c/chromium/src/+/4864061.
>
> In this cl, it verifies if each closed path is empty, then it removes
> the empty closed subpaths from path. As the subpaths are removed, the
> corresponding line caps are skipped.
>
> Bug: 644067
>
> Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
> Commit-Queue: Yi Xu <yiyix@google.com>
> Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
> Reviewed-by: Justin Novosad <junov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1247735}

Bug: 644067
Change-Id: I33ecfd76574d6f60e6f8c471a38183f87757e3ef
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Feb 2, 2024
This reverts commit 572074cb06425797e7e110511db405134cf67e2f.

Reason for revert:
caused regression bug: crbug.com/1521614

Original change's description:
> Remove empty closed paths
>
> As discussed in the github issue,
> whatwg/html#1079, it's generally agreed to
> skip drawing line caps for closed paths. This is a follow up cl of:
> https://chromium-review.googlesource.com/c/chromium/src/+/4864061.
>
> In this cl, it verifies if each closed path is empty, then it removes
> the empty closed subpaths from path. As the subpaths are removed, the
> corresponding line caps are skipped.
>
> Bug: 644067
>
> Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
> Commit-Queue: Yi Xu <yiyix@google.com>
> Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
> Reviewed-by: Justin Novosad <junov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1247735}

Bug: 644067
Change-Id: I33ecfd76574d6f60e6f8c471a38183f87757e3ef
aarongable pushed a commit to chromium/chromium that referenced this issue Feb 2, 2024
This reverts commit 572074c.

Reason for revert: 
caused regression bug: crbug.com/1521614

Original change's description:
> Remove empty closed paths
>
> As discussed in the github issue,
> whatwg/html#1079, it's generally agreed to
> skip drawing line caps for closed paths. This is a follow up cl of:
> https://chromium-review.googlesource.com/c/chromium/src/+/4864061.
>
> In this cl, it verifies if each closed path is empty, then it removes
> the empty closed subpaths from path. As the subpaths are removed, the
> corresponding line caps are skipped.
>
> Bug: 644067
>
> Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
> Commit-Queue: Yi Xu <yiyix@google.com>
> Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
> Reviewed-by: Justin Novosad <junov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1247735}

Bug: 644067
Change-Id: I33ecfd76574d6f60e6f8c471a38183f87757e3ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5258624
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Commit-Queue: Yi Xu <yiyix@google.com>
Cr-Commit-Position: refs/heads/main@{#1255711}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Feb 2, 2024
This reverts commit 572074cb06425797e7e110511db405134cf67e2f.

Reason for revert:
caused regression bug: crbug.com/1521614

Original change's description:
> Remove empty closed paths
>
> As discussed in the github issue,
> whatwg/html#1079, it's generally agreed to
> skip drawing line caps for closed paths. This is a follow up cl of:
> https://chromium-review.googlesource.com/c/chromium/src/+/4864061.
>
> In this cl, it verifies if each closed path is empty, then it removes
> the empty closed subpaths from path. As the subpaths are removed, the
> corresponding line caps are skipped.
>
> Bug: 644067
>
> Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
> Commit-Queue: Yi Xu <yiyix@google.com>
> Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
> Reviewed-by: Justin Novosad <junov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1247735}

Bug: 644067
Change-Id: I33ecfd76574d6f60e6f8c471a38183f87757e3ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5258624
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Commit-Queue: Yi Xu <yiyix@google.com>
Cr-Commit-Position: refs/heads/main@{#1255711}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Feb 2, 2024
This reverts commit 572074cb06425797e7e110511db405134cf67e2f.

Reason for revert:
caused regression bug: crbug.com/1521614

Original change's description:
> Remove empty closed paths
>
> As discussed in the github issue,
> whatwg/html#1079, it's generally agreed to
> skip drawing line caps for closed paths. This is a follow up cl of:
> https://chromium-review.googlesource.com/c/chromium/src/+/4864061.
>
> In this cl, it verifies if each closed path is empty, then it removes
> the empty closed subpaths from path. As the subpaths are removed, the
> corresponding line caps are skipped.
>
> Bug: 644067
>
> Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
> Commit-Queue: Yi Xu <yiyix@google.com>
> Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
> Reviewed-by: Justin Novosad <junov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1247735}

Bug: 644067
Change-Id: I33ecfd76574d6f60e6f8c471a38183f87757e3ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5258624
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Commit-Queue: Yi Xu <yiyix@google.com>
Cr-Commit-Position: refs/heads/main@{#1255711}
aarongable pushed a commit to chromium/chromium that referenced this issue Feb 5, 2024
This reverts commit 572074c.

Reason for revert: 
caused regression bug: b/41494582, crbug.com/1521614

Original change's description:
> Remove empty closed paths
>
> As discussed in the github issue,
> whatwg/html#1079, it's generally agreed to
> skip drawing line caps for closed paths. This is a follow up cl of:
> https://chromium-review.googlesource.com/c/chromium/src/+/4864061.
>
> In this cl, it verifies if each closed path is empty, then it removes
> the empty closed subpaths from path. As the subpaths are removed, the
> corresponding line caps are skipped.
>
> Bug: 644067
>
> Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
> Commit-Queue: Yi Xu <yiyix@google.com>
> Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
> Reviewed-by: Justin Novosad <junov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1247735}

(cherry picked from commit b495280)

Bug: 644067
Change-Id: I33ecfd76574d6f60e6f8c471a38183f87757e3ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5258624
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Commit-Queue: Yi Xu <yiyix@google.com>
Cr-Original-Commit-Position: refs/heads/main@{#1255711}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5265681
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Prudhvikumar Bommana <pbommana@google.com>
Owners-Override: Prudhvikumar Bommana <pbommana@google.com>
Cr-Commit-Position: refs/branch-heads/6261@{#458}
Cr-Branched-From: 9755d9d-refs/heads/main@{#1250580}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Feb 7, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

fix

Change-Id: Ic4a2f23470a7c1abcc5b9793cd100451db3a4ac1
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue Feb 9, 2024
…stonly

Automatic update from web-platform-tests
Revert "Remove empty closed paths"

This reverts commit 572074cb06425797e7e110511db405134cf67e2f.

Reason for revert:
caused regression bug: crbug.com/1521614

Original change's description:
> Remove empty closed paths
>
> As discussed in the github issue,
> whatwg/html#1079, it's generally agreed to
> skip drawing line caps for closed paths. This is a follow up cl of:
> https://chromium-review.googlesource.com/c/chromium/src/+/4864061.
>
> In this cl, it verifies if each closed path is empty, then it removes
> the empty closed subpaths from path. As the subpaths are removed, the
> corresponding line caps are skipped.
>
> Bug: 644067
>
> Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
> Commit-Queue: Yi Xu <yiyix@google.com>
> Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
> Reviewed-by: Justin Novosad <junov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1247735}

Bug: 644067
Change-Id: I33ecfd76574d6f60e6f8c471a38183f87757e3ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5258624
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Commit-Queue: Yi Xu <yiyix@google.com>
Cr-Commit-Position: refs/heads/main@{#1255711}

--

wpt-commits: 64b75a906f010f05c58a9941c75d3719079130a0
wpt-pr: 44373
jamienicol pushed a commit to jamienicol/gecko that referenced this issue Feb 12, 2024
…stonly

Automatic update from web-platform-tests
Revert "Remove empty closed paths"

This reverts commit 572074cb06425797e7e110511db405134cf67e2f.

Reason for revert:
caused regression bug: crbug.com/1521614

Original change's description:
> Remove empty closed paths
>
> As discussed in the github issue,
> whatwg/html#1079, it's generally agreed to
> skip drawing line caps for closed paths. This is a follow up cl of:
> https://chromium-review.googlesource.com/c/chromium/src/+/4864061.
>
> In this cl, it verifies if each closed path is empty, then it removes
> the empty closed subpaths from path. As the subpaths are removed, the
> corresponding line caps are skipped.
>
> Bug: 644067
>
> Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
> Commit-Queue: Yi Xu <yiyix@google.com>
> Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
> Reviewed-by: Justin Novosad <junov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1247735}

Bug: 644067
Change-Id: I33ecfd76574d6f60e6f8c471a38183f87757e3ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5258624
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Commit-Queue: Yi Xu <yiyix@google.com>
Cr-Commit-Position: refs/heads/main@{#1255711}

--

wpt-commits: 64b75a906f010f05c58a9941c75d3719079130a0
wpt-pr: 44373
mbrodesser-Igalia pushed a commit to mbrodesser-Igalia/wpt that referenced this issue Feb 19, 2024
This reverts commit 572074cb06425797e7e110511db405134cf67e2f.

Reason for revert:
caused regression bug: crbug.com/1521614

Original change's description:
> Remove empty closed paths
>
> As discussed in the github issue,
> whatwg/html#1079, it's generally agreed to
> skip drawing line caps for closed paths. This is a follow up cl of:
> https://chromium-review.googlesource.com/c/chromium/src/+/4864061.
>
> In this cl, it verifies if each closed path is empty, then it removes
> the empty closed subpaths from path. As the subpaths are removed, the
> corresponding line caps are skipped.
>
> Bug: 644067
>
> Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
> Commit-Queue: Yi Xu <yiyix@google.com>
> Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
> Reviewed-by: Justin Novosad <junov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1247735}

Bug: 644067
Change-Id: I33ecfd76574d6f60e6f8c471a38183f87757e3ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5258624
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Commit-Queue: Yi Xu <yiyix@google.com>
Cr-Commit-Position: refs/heads/main@{#1255711}
marcoscaceres pushed a commit to web-platform-tests/wpt that referenced this issue Feb 23, 2024
As discussed in the github issue,
whatwg/html#1079, it's generally agreed to
skip drawing line caps for closed paths. This is a follow up cl of:
https://chromium-review.googlesource.com/c/chromium/src/+/4864061.

In this cl, it verifies if each closed path is empty, then it removes
the empty closed subpaths from path. As the subpaths are removed, the
corresponding line caps are skipped.

Bug: 644067

Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
Commit-Queue: Yi Xu <yiyix@google.com>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1247735}
marcoscaceres pushed a commit to web-platform-tests/wpt that referenced this issue Feb 23, 2024
This reverts commit 572074cb06425797e7e110511db405134cf67e2f.

Reason for revert:
caused regression bug: crbug.com/1521614

Original change's description:
> Remove empty closed paths
>
> As discussed in the github issue,
> whatwg/html#1079, it's generally agreed to
> skip drawing line caps for closed paths. This is a follow up cl of:
> https://chromium-review.googlesource.com/c/chromium/src/+/4864061.
>
> In this cl, it verifies if each closed path is empty, then it removes
> the empty closed subpaths from path. As the subpaths are removed, the
> corresponding line caps are skipped.
>
> Bug: 644067
>
> Change-Id: I14c5c4819a31eb9249d01574ff1b5c60826c3b9e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4916516
> Commit-Queue: Yi Xu <yiyix@google.com>
> Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
> Reviewed-by: Justin Novosad <junov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1247735}

Bug: 644067
Change-Id: I33ecfd76574d6f60e6f8c471a38183f87757e3ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5258624
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
Commit-Queue: Yi Xu <yiyix@google.com>
Cr-Commit-Position: refs/heads/main@{#1255711}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer topic: canvas
Development

No branches or pull requests

9 participants