Skip to content
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

Feature: Trigonometric functions (sin(), cos() etc) #8

Closed
LeaVerou opened this issue Jul 19, 2022 · 5 comments
Closed

Feature: Trigonometric functions (sin(), cos() etc) #8

LeaVerou opened this issue Jul 19, 2022 · 5 comments

Comments

@LeaVerou
Copy link
Collaborator

Spec: https://drafts.csswg.org/css-values/#trig-funcs
MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Functions

(Split off from #1)

@SebastianZ
Copy link

I believe it is too early to add those. Is there actually already support for them somewhere?

Sebastian

@ramiy
Copy link

ramiy commented Aug 16, 2022

Browser Support:

CSS trigonometric functions are already supported by Safari/Webkit. Lately Chromium is showing strong signs they will add support soon.

Documentation:

I have created new pages for CSS trig functions in MDN, not all are merged yet but we will finish documenting all the functions by the time the survey will be out.

In addition, I updated MDN browser compatibility data for all the supported trig functions, and the syntaxes for all the CSS math functions.

By the time we have cross-browser compatibility, developers will have all the necessary documentation.

Increase Awareness:

Mentioning the trig functions in the survey will help browser vendors to prioritize development.

@SebastianZ
Copy link

Browser Support:

CSS trigonometric functions are already supported by Safari/Webkit. Lately Chromium is showing strong signs they will add support soon.

Oh, I had no idea about that! And I was just told that Gecko actually also already has an experimental implementation.

Documentation:

I have created new pages for CSS trig functions in MDN, not all are merged yet but we will finish documenting all the functions by the time the survey will be out.

In addition, I updated MDN browser compatibility data for all the supported trig functions, and the syntaxes for all the CSS math functions.

By the time we have cross-browser compatibility, developers will have all the necessary documentation.

👍🏻

Increase Awareness:

Mentioning the trig functions in the survey will help browser vendors to prioritize development.

As it seems that all three major browser engines are already working on their implementation or even shipping these functions, I guess the main purpose is rather to increase authors awareness, at this point in time.

Sebastian

@ramiy
Copy link

ramiy commented Aug 16, 2022

I guess the main purpose is rather to increase authors awareness, at this point in time.

There is no better way to do it than The State of CSS. Each year developers learn new things about CSS. In 2022, trig functions can be the new kid in the block.

@SebastianZ
Copy link

Just an update on the Gecko implementation. They got enabled by default on Nightly last week and bug 1787070 was created to enable them by default everywhere. So I assume they will ship in Firefox 106 or 107.

Sebastian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In survey
Development

No branches or pull requests

4 participants