-
Notifications
You must be signed in to change notification settings - Fork 132
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
Is the path()
function allowed for the d
property?
#939
Comments
This is the definition of the <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10">
<path d="path('M1,1 9,1 9,9 1,9z')" />
</svg> The CSS path function is only allowed when the <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10">
<style>
path {
d: path('M1,1 9,1 9,9 1,9z');
}
</style>
<path />
</svg> Not that currently, Safari doesn't support the That said, to my knowledge there is no clear spec that summarize that behavior in CSS, and FWIW, the current SVG2 spec, even if it is the most accurate SVG spec currently available, doesn't really reflect the actual state of implementation of SVG within browsers... especially when it comes to CSS. |
That's correct, but keep an eye out on WebKit bug 234227.
That's concerning! I hope this issue yields a clear specification. |
I was told today about #374 which is relevant here. |
The spec for the
d
property says:Looking at the grammar I do not see any mention of the
path()
function. However, the bulk of the WPT coverage for thed
property use thepath()
function and Chrome and Firefox support it.Am I misreading the spec? Should the SVG spec allow the
path()
function to be used? Should the WPT coverage be updated to not use thepath()
function?The text was updated successfully, but these errors were encountered: