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

Fix prose about H and V path commands #779

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JeremiePat
Copy link
Contributor

Hi SVGWG,

The current wording of the H command state that:

An H or h command is equivalent to an L or l command with 0 specified for the y coordinate.

This means that M1,1 l5,5 H10 is equivalent to M1,1 l5,5 L10,0 which is not the case.

All browsers (for the lack of other SVG rendering engines) consider that M1,1 l5,5 H10 is actually equivalent to M1,1 l5,5 L10,6 which makes more sens.

As a consequence I suggest the following change in prose to fix that spec issue:

An h command is equivalent to an l command with 0 specified for the y coordinate. An H command is equivalent to an L command with the y coordinate being equal to the absolute y coordinate of the current point.

Because V is worded the same way (but for the x coordinate instead of the y coordinate), I'm also suggesting an equivalent change for the V command.

Base automatically changed from master to main January 28, 2021 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant