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

Percentages in patterns are interpreted incorrectly under certain circumstances #13

Open
Felerius opened this issue Aug 10, 2017 · 0 comments

Comments

@Felerius
Copy link
Collaborator

Percentages used in the x, y, width and height attributes of patterns are interpreted incorrectly when patternUnits is set to "objectBoundingBox": The percentages are first resolved relative to the viewport by SVG++, and the result is than interpreted as a factor of the referencing objects bounding box (as is usual for patternUnits="objectBoundingBox").

From some quick tests it seems that the percentages should instead be resolved relative to the referencing objects bounding box (i.e. x="25%" would be the same as x=".25" if patternUnits="objectBoundingBox").

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

No branches or pull requests

1 participant