Skip to content

[CSS] Implement trigonometric functions and constants #19832

Closed

Description

@Rumyra

Acceptance Criteria

  • The listed features are documented sufficiently on MDN
  • BCD is updated
  • Interactive example and data repos are updated if appropriate
  • The content has been reviewed as needed

For folks helping with Firefox related documentation

  • Set bugs to dev-doc-complete
  • Add entry to Firefox release notes if feature is enabled in release
    or
  • Add entry to Firefox experimental features page if feature is not yet enabled in release

Features to document

Implement trigonometric functions and constants https://drafts.csswg.org/css-values-4/#trig-funcs

Related Gecko bugs

https://bugzilla.mozilla.org/show_bug.cgi?id=1774589

Issues and PRs

Activity

  1. added
    Content:CSS
    on Aug 22, 2022
  2. added
    needs triage
    and removed
    Content:CSS
    on Aug 22, 2022
  3. moved this from Todo to In Progress in MDN Web Docs Content Teamon Sep 2, 2022
  4. bsmth commented on Sep 6, 2022

    @bsmth
    Member

    The functions to be added to mdn/content:

    see Ramiy's comment below for the status of PRs

  5. ramiy commented on Sep 6, 2022

    @ramiy
    Contributor

    Hi @Rumyra ,

    Since Firefox 103, those functions are behind the layout.css.trig.enabled flag.

    We need to make sure they will ship in Firefox 105 (not Nightly).

    Please read the comments at mdn/browser-compat-data#17505

  6. bsmth commented on Sep 6, 2022

    @bsmth
    Member

    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?

  7. ramiy commented on Sep 6, 2022

    @ramiy
    Contributor

    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?

    No, they are not ready yet.

  8. bsmth commented on Sep 6, 2022

    @bsmth
    Member

    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.

  9. Rumyra commented on Sep 6, 2022

    @Rumyra
    CollaboratorAuthor

    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!

  10. 8 remaining items

  11. bsmth commented on Sep 15, 2022

    @bsmth
    Member

    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.

    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/calc

  12. bsmth commented on Sep 15, 2022

    @bsmth
    Member

    @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. 🙌🏻

  13. bsmth commented on Sep 15, 2022

    @bsmth
    Member

    @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! :)

  14. ramiy commented on Sep 15, 2022

    @ramiy
    Contributor

    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/calc

    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>.

  15. bsmth commented on Sep 19, 2022

    @bsmth
    Member

    Yes, I think this makes sense. Could you please fill out a content suggestion issue so that we can track this? Thanks a lot

  16. hamishwillee commented on Oct 13, 2022

    @hamishwillee
    Collaborator

    @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?

  17. bsmth commented on Oct 14, 2022

    @bsmth
    Member

    Hi @hamishwillee thanks for checking. I think you're right in including this one into this ticket:

    Although 1682444 looks unrelated, did you mean to link to this?

  18. hamishwillee commented on Oct 14, 2022

    @hamishwillee
    Collaborator

    Although 1682444 looks unrelated, did you mean to link to this?

    Whoops. No. . Should we add a note to the calc one that it is addressed by this issue?

  19. bsmth commented on Oct 14, 2022

    @bsmth
    Member

    Should we add a note to the calc one that it is addressed by this issue?

    Good idea, just added a comment to the bug 👍🏻

  20. hamishwillee commented on Oct 16, 2022

    @hamishwillee
    Collaborator

    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.

  21. moved this from In Progress to Done in MDN Web Docs Content Teamon Oct 19, 2022
  22. moved this from Done to Archive in MDN Web Docs Content Teamon Nov 15, 2022
  23. added
    fx release archive
    and removed on Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Content:CSSfx release archive

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions