-
Notifications
You must be signed in to change notification settings - Fork 2.2k
FF97 CSS basic-shape path() function enabled by default #14498
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition, I THINK it would be useful to update the
d
attribute to indicate that from FF97 it is now a "presentation attribute", which is what allows it to be modified in CSS and set to thepath()
ornone
. Not sure right way to do this - subfeature "supports_css_path()" or similar. Or would we do this as a "reversed" one - e.g. not_supports_css_path. Note that current chrome does do the right thing. @ddbeck Advice?
I'm not sure, honestly. I don't know SVG that well. What kind of attribute was it before? Was it specified as that? Might be easier to have this discussion on a draft PR, though, since you've already got an idea and we may as well start from there.
Further, any reason not to add these spec URLs that are currently manually in the page here https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#specifications ?
None that I can see. Proceed!
One extra thing: the MDN URL points to a now-non-existent fragment. I'd like to see that go away.
@ddbeck This was all messed up, and what I did was not helping. The story is:
So I think the problem here is that the specific support should be done as subfeatures of path in this structure:
If you agree, would appreciate your advice on the names and descriptions for each of those new properties. Am setting back to draft to make it clear this is just not right! |
Ugh, this is a bit messy; I think it's an artifact of how we've recorded CSS functions in BCD (which is to say, abstractly—like mixins, instead of concrete interfaces). I think you've got the right idea, but perhaps we need to go a step further:
|
a6a85f4
to
68aaf05
Compare
@ddbeck Re #14498 (comment) - what I have done/questions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More suggestions for you, @hamishwillee. This has been a tough one. Forgive me. 🙏
Thanks for your help @ddbeck . I integrated your suggestions. If you wander through the file view you will see the response to your question and a couple of extra "notes". Ready for re-review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting pretty close here. Thanks again, Hamish!
Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
@ddbeck I think "this" is ready. Your question answered in https://github.com/mdn/browser-compat-data/pull/14498/files#r809627789 |
Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
I merged your commit. Should be good to go now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thank you! 🎉
Thanks @ddbeck .- feels like a long time coming! |
FF97 ships the bug Ship d property and make SVG path d attribute as the presentation attribute which was implemented behind pref in FF91 https://bugzilla.mozilla.org/show_bug.cgi?id=1340422
My understanding is that essentially this means you can now call
path()
on thed
property of an SVG path element in CSS. There is a cool little demo here: https://codepen.io/airen/pen/wgNEQoSo what I have done here is for
path()
added a NOTE about the introduction of the feature in FF91 and a new version for FF97 that removes the preference. For FF android the preference does not work from FF79 so I just put that as the end version.As a separate PR to follow ...
In addition, I THINK it would be useful to update the
d
attribute to indicate that from FF97 it is now a "presentation attribute", which is what allows it to be modified in CSS and set to thepath()
ornone
. Not sure right way to do this - subfeature "supports_css_path()" or similar. Or would we do this as a "reversed" one - e.g. not_supports_css_path. Note that current chrome does do the right thing. @ddbeck Advice?Further, any reason not to add these spec URLs that are currently manually in the page here https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#specifications ?