All the articles in:
https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/CSS_Functionals
In https://github.com/mdn/sprints/issues/3838 we created an index of over 100 CSS functions. And I'm sure there are many more functions I've missed. But the important thing is that now we have a page listing all the CSS functions.
While working on this page I've noticed that some functions use the same name as data-types and/or pseudo elements/classes. I think we need to adopt a new naming convention for CSS functions on MDN to distinguish them from other articles. Basically changing the URLs.
Example:
https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/image
https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/imagefunction ( should be image() instead of imagefunction )
both links above represent an image. The first is image data-type, the second is an image() function. My proposal is to rename all the function URLs to include brackets (), like this article:
https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/url() (the URL ends with () as this is a function article)
@:::()Reviewed. I've made a few tweaks, moved the page to https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/CSS_Functions, and added the sidebar, but overall looks like a great start!
@chrisdavidmills What do you think about the URLs?
OLD: https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/attr
NEW: https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/attr()
OLD: https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/calc
NEW: https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/calc()
OLD: https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/var
NEW: https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/var()
I want to change the URL structure for all the CSS functions.
@ramiy I've moved these pages to the new URLs (and all of their translations).
My justification here is that this sems to be what we've done in the past — it's the closest we have to the convention right now — and I think it makes sense to have these consistent.
If we decide later on that we want to do something else, then it'll be trivial to do a mass edit and change them once the Yari platform goes live.
@chrisdavidmills You moved only 3 URLs, there are 56 more functions at:
https://wiki.developer.mozilla.org/en-US/docs/Web/CSS/CSS_Functions#Index
As for Yari, you can do it using the new CLI. But I'm not sure it's ready yet. Check the CSS folder it's not updated yet.
In any case, ping when you finish. I need to change to new URLs in all the articles.
@ramiy I'll have to do this another day. In the current wiki system, moving pages takes a long time; moving the other 53 function pages and all their translations would take a good few hours.
This is one reason why I am so excited about Yari! ;-)
New function pages moved today:
(I'm going to try to do a few each day until they are all moved).
New function pages moved today:
New pages moved today:
I also corrected the fit-content() link — it was pointing to the keyword page, but the function page now exists.
I've missed a few days, so I did quite a few today:
Did some more today:
And some more:
OK, this is the last lot of them done:
@chrisdavidmills
Great work Chris, now we need to fix #3885