{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/svgwg/issues/300","repository_url":"https://api.github.com/repos/w3c/svgwg","labels_url":"https://api.github.com/repos/w3c/svgwg/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/w3c/svgwg/issues/300/comments","events_url":"https://api.github.com/repos/w3c/svgwg/issues/300/events","html_url":"https://github.com/w3c/svgwg/issues/300","id":195158612,"number":300,"title":"Marker auto-start-reverse and closed sub-paths","user":{"login":"nikosandronikos","id":4891471,"avatar_url":"https://avatars.githubusercontent.com/u/4891471?v=3","gravatar_id":"","url":"https://api.github.com/users/nikosandronikos","html_url":"https://github.com/nikosandronikos","followers_url":"https://api.github.com/users/nikosandronikos/followers","following_url":"https://api.github.com/users/nikosandronikos/following{/other_user}","gists_url":"https://api.github.com/users/nikosandronikos/gists{/gist_id}","starred_url":"https://api.github.com/users/nikosandronikos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikosandronikos/subscriptions","organizations_url":"https://api.github.com/users/nikosandronikos/orgs","repos_url":"https://api.github.com/users/nikosandronikos/repos","events_url":"https://api.github.com/users/nikosandronikos/events{/privacy}","received_events_url":"https://api.github.com/users/nikosandronikos/received_events","type":"User","site_admin":false},"labels":[{"id":318891142,"url":"https://api.github.com/repos/w3c/svgwg/labels/Painting%20chapter","name":"Painting chapter","color":"80b1d3","default":false},{"id":318822338,"url":"https://api.github.com/repos/w3c/svgwg/labels/SVG%20Core","name":"SVG Core","color":"b3de69","default":false},{"id":318822672,"url":"https://api.github.com/repos/w3c/svgwg/labels/SVG%20Markers","name":"SVG Markers","color":"b3de69","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/w3c/svgwg/milestones/2","html_url":"https://github.com/w3c/svgwg/milestone/2","labels_url":"https://api.github.com/repos/w3c/svgwg/milestones/2/labels","id":1837893,"number":2,"title":"SVG Core clean-up","description":"Non-normative editorial fixes to the main SVG spec.","creator":{"login":"nikosandronikos","id":4891471,"avatar_url":"https://avatars.githubusercontent.com/u/4891471?v=3","gravatar_id":"","url":"https://api.github.com/users/nikosandronikos","html_url":"https://github.com/nikosandronikos","followers_url":"https://api.github.com/users/nikosandronikos/followers","following_url":"https://api.github.com/users/nikosandronikos/following{/other_user}","gists_url":"https://api.github.com/users/nikosandronikos/gists{/gist_id}","starred_url":"https://api.github.com/users/nikosandronikos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikosandronikos/subscriptions","organizations_url":"https://api.github.com/users/nikosandronikos/orgs","repos_url":"https://api.github.com/users/nikosandronikos/repos","events_url":"https://api.github.com/users/nikosandronikos/events{/privacy}","received_events_url":"https://api.github.com/users/nikosandronikos/received_events","type":"User","site_admin":false},"open_issues":52,"closed_issues":11,"state":"open","created_at":"2016-06-20T11:36:58Z","updated_at":"2016-12-16T00:08:23Z","due_on":"2017-02-15T00:00:00Z","closed_at":null},"comments":5,"created_at":"2016-12-13T04:31:42Z","updated_at":"2016-12-16T00:08:23Z","closed_at":"2016-12-16T00:08:23Z","body":"I'm putting together some more marker tests for WPT and I came across this...\r\n\r\nFor a marker with **[orient](https://svgwg.org/svg2-draft/painting.html#OrientAttribute)**=\"auto\", on a **[closed sub-path](https://svgwg.org/svg2-draft/paths.html#TermClosedSubpath)**, the marker start must be the **[direction of the path at that point](https://svgwg.org/svg2-draft/paths.html#PathDirectionality)**.\r\nSo for the following rect:\r\n```\r\nM 50,50 h50 v50 h-50 z\r\n```\r\nIf marker-start, marker-mid, and marker-end were specified, four markers would be visible (though more would be drawn, they would just overlap) and each would be pointing at the mid point of the direction of the incoming segment and outgoing segment.\r\nSo at the top right of the rect, where the incoming segment travels east and the outgoing segment travels south, the marker would point south east).\r\n\r\nFor a marker with orient=\"auto-start-reverse\", the orient for marker-start is 180 different than the orientation would be if \"auto\" were specified. This is because we want the marker at each end of an open path to point in opposite directions. We don't give any specific behaviour for closed paths, so currently this means the marker-start on a closed path would be oriented in the opposite direction as well.\r\n\r\nDo we want to restrict auto-start-reverse behaviour to open sub-paths only? \r\n\r\nHere's a test to see what's going on:\r\nhttps://jsfiddle.net/dodgeyhack/7h0csof5/"},"comment":{"url":"https://api.github.com/repos/w3c/svgwg/issues/comments/267481932","html_url":"https://github.com/w3c/svgwg/issues/300#issuecomment-267481932","issue_url":"https://api.github.com/repos/w3c/svgwg/issues/300","id":267481932,"user":{"login":"nikosandronikos","id":4891471,"avatar_url":"https://avatars.githubusercontent.com/u/4891471?v=3","gravatar_id":"","url":"https://api.github.com/users/nikosandronikos","html_url":"https://github.com/nikosandronikos","followers_url":"https://api.github.com/users/nikosandronikos/followers","following_url":"https://api.github.com/users/nikosandronikos/following{/other_user}","gists_url":"https://api.github.com/users/nikosandronikos/gists{/gist_id}","starred_url":"https://api.github.com/users/nikosandronikos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikosandronikos/subscriptions","organizations_url":"https://api.github.com/users/nikosandronikos/orgs","repos_url":"https://api.github.com/users/nikosandronikos/repos","events_url":"https://api.github.com/users/nikosandronikos/events{/privacy}","received_events_url":"https://api.github.com/users/nikosandronikos/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T00:08:23Z","updated_at":"2016-12-16T00:08:23Z","body":"Discussed at [15 December 2016 telcon](https://www.w3.org/2016/12/15-svg-minutes.html#item04).\r\n\r\nEveryone is happy with currently specced behaviour:\r\n* Direction at marker corners for closed shapes should always be based on incoming and outgoing segments\r\n* zero length segments are skipped for direction calculations\r\n* marker-start for auto-start-reverse should stay reversed for closed shapes.\r\n\r\nTest results show:\r\n* FIrefox - marker-start directionality is wrong, but marker-end and marker-mid are correct.\r\nChrome - marker-start and marker-end directionality is wrong, auto-start-reverse direction on closed shapes also wrong\r\n* Edge - correct but doesn't implement auto-start-reverse\r\n"}}
{"actor":{"display_login":"nikosandronikos"}}