Skip to content

[css-values] Trigonometric functions #2331

@LeaVerou

Description

@LeaVerou

I keep stumbling on use cases that need trigonometric functions to be solved, and I always have to resort to JS or a preprocessor for them, which is a pain. Basically almost any time you need to match two things and angles are involved.

Sadly I couldn't find most of my use cases, but here are two:

Also the following use sqrt (precomputed), but would need trigonometry in the general case :

(credits: @MeFoDy for collecting these from my book)

What do you think? Can we make it happen?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions