CSS To Get Support For Trigonometry Functions (zdnet.com)
CSS, or the language that styles and arranges how page elements appear on a website, will soon get support for trigonometry functions such as sine, cosine, tangent, and others, ZDNet is reporting. From the report: The new trigonometry functions were approved at the end of February in a meeting of the World Wide Web Consortium (W3C) CSS Working Group. The new functions approved and set to join the CSS standard are: Sine - sin(), cosine - cos(), tangent - tan(), arccosine - acos(), arcsine - asin(), arctangent - atan(), arctangent (of two numbers x and y) - atan2(), square root - sqrt(), square root of the sum of squares of its arguments - hypot(), and power of - pow().
Can it do statistics? That's what I want to know ...
Seriously, why? CSS is meant to make pages prettier. Does it need math functions? Are they going to make turing complete?
Whats with all the js, css, wasm, webgl malware vectors, but hey no more flash right?
Taking javascript out of the equation is more than welcome.
Seriously, why? CSS is meant to make pages prettier. Does it need math functions? Are they going to make turing complete?
You do realize that EVERYTHING on a computer is a math function sooner or later, right? Any why not have math functions? Just because you can't think of a use for it doesn't mean nobody else can. SVG and MathML make use of CSS and the utility there seems fairly straightforward. Can you not imagine CSS math functions being used to display math data better than it is now?
A nerd was invited to compete in the Trigonometry Mathletic Competition...
he said:
"Sine me up!"
Catholics fail trigonometry because they're afraid of sin
Irish people fail trigonometry because they can't tan.
Everyone else fails trigonometry just cos.
My girlfriend has a trigonometry fetish.
Every time we talk, she gets off on a tangent.
My teacher frowned at me when I handed in my trigonometry test paper.
I don't think that's a good sine
While the study of these functions is called "trigonometry", the functions themselves are called trigonometric.
[css-values] Trigonometric functions #2331
The contributor documents potential use cases in his opening post, and a little later on, the irc log is visible
How about adding support for simple constants first?!
const myColor=#0F0;
body
{
background: myColor;
}
Yes, I know... CSS pre-processors, yadda yadda yadda... but every time you add a tool to your system, it's another security risk, another thing to slow your system down.
#DeleteFacebook
English is a powerful language, which is one of the reasons why it dominates our planet; it has many tools, one of which is the adjunct noun (or "attributive noun", or "noun [pre]modifier").
Some nerds you are. All these posts should be asking the most important question...
Which angle measure system are these using, and why not have two sets, where sine is dsin(argument) or rsin(argument) and the others too, to remove any ambiguity?
Just a thought. It would suck if they implemented this in degree measure for people who prefer radians or vice versa.
Our reign has gone on long enough. Indeed. Summon the meteors.
You got it.
Also JS.
So I guess that trig I learned WILL be useful in my life.
The real question is, when will I get support for trig functions?
Now, can we get support for doing basic shit like being able to calculate the height of a dynamic element without having to resort to javascript hacks?
Prescriptivists would claim that the existence of "trigonometric" makes it nonstandard to use "trigonometry" as an adjunct noun.
The file upload button is unstylable. People write crazy amounts of browser-specific code to get around this - literally hundreds of lines of code, if you want to work responsively in all current browsers - because every other button can have style applied to it, but file upload buttons can't.
Seriously. Working on trig functions when they haven't finished with buttons yet? That seems really strange to me.
Time for CSS to become a real programming language with variables and functions.
CSS is a domain specific language not a general purpose language.
Great so now things will be even slower and more CPU intensive just so we can put more rounded edges and stupid starwipes into what should be simple interfaces.
It's OK Bender, there's no such thing as 2.