You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CSS] Implement trigonometric functions and constants #19832
Hi @ramiy that's great, thanks a lot for your contribution. Do you already have a branch for the outstanding functions? I think we could probably get them all to land in a single PR, what do you think?
Hi @ramiy that's great, thanks a lot for your contribution. Do you already have a branch for the outstanding functions? I think we could probably get them all to land in a single PR, what do you think?
OK, thanks. Would you like to collaborate on a fork? I can open a draft PR to compare changes if that's convenient. Let me know how you would like to proceed.
Hence why the issue is open, as the content team works on updates monthly. As these are for 105 we're looking to get them complete by the end of next week. If you need @bsmth support to do this please let us know - thanks!
OK, I see your point. How about we mention e | pi | infinity | -infinity | NaN on the values and units page under numeric constants as they're still not types, as such, but referred to in the spec as "keywords" under math expressions.
@ramiy I think we should limit the scope of these changes for the moment. Let's just add some basic notes about the constants (one or two paras) as a sibling or child of numeric types either on the values or types page. We need to have a longer think about where it makes sense to have <calc-constant> and friends documented. 🙌🏻
@ramiy -> If you would like to make bigger changes (i.e. adding pages), could you please fill out a content suggestion issue so we can plan for it? Thank you! :)
<calc-constant> - New CSS data type #20856 includes the content changes to cover infinity and NaN. I would add a release not when this is merged to make sure this bug is also complete.
Although 1682444 looks unrelated, did you mean to link to this?
Thanks! I think its a generally good idea to cross link so that anyone in the team can tell that a bugzilla bug is already being addressed in some way. We're not so bad at that in more recent times.
Activity
bsmth commentedon Sep 6, 2022
The functions to be added to mdn/content:tan()- New CSS functional notation #19145 (comment)[ ] asin() acos() atan() atan2()see Ramiy's comment below for the status of PRs
ramiy commentedon Sep 6, 2022
Hi, I've already started documenting all the trig functions.
mdn/content:
sin()-sin()- New CSS functional notation #19016cos()-cos()- New CSS functional notation #19119tan()-tan()- New CSS functional notation #19145asin()-asin()- New CSS functional notation #20383acos()-acos()- New CSS functional notation #20420atan()-atan()- New CSS functional notation #20492atan2()-atan2()- New CSS functional notation #20592mdn/browser-compat-data:
sin()- feat(css): Add CSS Values Level 4sin()compatibility data browser-compat-data#17170cos()- feat(css): Add CSS Values Level 4cos()compatibility data browser-compat-data#17205tan()- feat(css): Add CSS Values Level 4tan()compatibility data browser-compat-data#17206asin()- feat(css): Add CSS Values Level 4asin()compatibility data browser-compat-data#17207acos()- feat(css): Add CSS Values Level 4acos()compatibility data browser-compat-data#17218atan()- feat(css): Add CSS Values Level 4atan()compatibility data browser-compat-data#17220atan2()- feat(css): Add CSS Values Level 4atan2()compatibility data browser-compat-data#17221mdn/data:
ramiy commentedon Sep 6, 2022
Hi @Rumyra ,
Since Firefox 103, those functions are behind the
layout.css.trig.enabledflag.We need to make sure they will ship in Firefox 105 (not Nightly).
Please read the comments at mdn/browser-compat-data#17505
bsmth commentedon Sep 6, 2022
Hi @ramiy that's great, thanks a lot for your contribution. Do you already have a branch for the outstanding functions? I think we could probably get them all to land in a single PR, what do you think?
ramiy commentedon Sep 6, 2022
No, they are not ready yet.
bsmth commentedon Sep 6, 2022
OK, thanks. Would you like to collaborate on a fork? I can open a draft PR to compare changes if that's convenient. Let me know how you would like to proceed.
Rumyra commentedon Sep 6, 2022
Hi @ramiy - these are to be shipped in 105 - see the afore mentioned bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1774589
Hence why the issue is open, as the content team works on updates monthly. As these are for 105 we're looking to get them complete by the end of next week. If you need @bsmth support to do this please let us know - thanks!
8 remaining items
bsmth commentedon Sep 15, 2022
OK, I see your point. How about we mention
e | pi | infinity | -infinity | NaNon the values and units page under numeric constants as they're still not types, as such, but referred to in the spec as "keywords" under math expressions.I'm curious where
<calc-sum>etc. would fit in the our docs. Note that we have the following: https://developer.mozilla.org/en-US/docs/Web/CSS/calcbsmth commentedon Sep 15, 2022
@ramiy I think we should limit the scope of these changes for the moment. Let's just add some basic notes about the constants (one or two paras) as a sibling or child of numeric types either on the values or types page. We need to have a longer think about where it makes sense to have
<calc-constant>and friends documented. 🙌🏻bsmth commentedon Sep 15, 2022
@ramiy -> If you would like to make bigger changes (i.e. adding pages), could you please fill out a content suggestion issue so we can plan for it? Thank you! :)
ramiy commentedon Sep 15, 2022
See the calc syntax. The spec talks about calc-sum & friends too. I thin they should be documented in MDN.
Some of the content currently documented in calc() will be moved to
<calc-sum>,<calc-product>,<calc-value>and<calc-constant>.bsmth commentedon Sep 19, 2022
Yes, I think this makes sense. Could you please fill out a content suggestion issue so that we can track this? Thanks a lot
hamishwillee commentedon Oct 13, 2022
@bsmth How is this one going? I was just doing a sweep of 105 items that still have dev-doc-needed and it includes these two:
Mostly just checking that 1682444 is part of this so we don't need another release issue to be created?
bsmth commentedon Oct 14, 2022
Hi @hamishwillee thanks for checking. I think you're right in including this one into this ticket:
<calc-constant>- New CSS data type #20856 includes the content changes to coverinfinityandNaN. I would add a release not when this is merged to make sure this bug is also complete.Although 1682444 looks unrelated, did you mean to link to this?
hamishwillee commentedon Oct 14, 2022
Whoops. No. . Should we add a note to the calc one that it is addressed by this issue?
bsmth commentedon Oct 14, 2022
Good idea, just added a comment to the bug 👍🏻
hamishwillee commentedon Oct 16, 2022
Thanks! I think its a generally good idea to cross link so that anyone in the team can tell that a bugzilla bug is already being addressed in some way. We're not so bad at that in more recent times.