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.
If CSS could replace JavaScript that would be lovely for web designers :P.
Web browsers aren't wasteful enough yet...
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?
Finally mathematically defined rounded title bars :-)
That's great but can we PLEASE get :has() that developers have been asking for for f*ing years?
No need to add anything, to do that.
http://my-codeworks.com/blog/2015/css3-proven-to-be-turing-complete
This here is only an optimization for speed. ;)
http://my-codeworks.com/blog/2015/css3-proven-to-be-turing-complete
Granted, the "tape" is a HTML stream, and it needs a user as instruction clock, but I think it counts.
(We could add a CSS feature to allow auto-starting animations/transforms into different states, to solve the latter, and allow CSS styling of CSS documents to solve the former. ;)
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
If you thought JS was badly suited as a scripting language, wait until you see CSS being used that way.
It won't be XSLT, but it will be close. ;)
But hey, we have WebAssembly now. Closed-source insecure leaky C code, JVM cross-compiles, and Visual Basic in your browser! yay! ;)
I'm gonna watch for an XSLT implementation!
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
CSS isn't bloated enough. It also needs HTML support. I'm looking forward.
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").
Wake me up when vertical positioning / headers / footers for page and print media types doesn't suck ass.
Or hell when you can just <center> things without overly complex hacks.
CSS badly needs useful dependent area feedback mechanisms because otherwise outcomes are too brittle and too content specific. Tables are STILL the only native construct that offers the necessary feedback.
Trig for what? Triangulating your position?? Like "zeroing-in" on radio signal transmitters etc. - et al.
* I can see that considering how often TRACKING is done online - wouldn't surprise me...
APK
P.S.=> Ugh, lol - cliche but "what WILL they THINK OF next?"...apk
Time for CSS to become a real programming language with variables and functions.
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.
...violations of the Verbal Morality Statute: to wit, using the "CSS" and "intuitive" in the same sentence.
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.
They are in the pileline:
https://wiki.csswg.org/ideas/constants
I agree with you: constants should be in CSS far before trig.
Fucking bigots.
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.
A "prescriptivist" argues that language is a protocol, which means there needs to be agreement between interacting parties in order for language to work.
More explicitly, a "prescriptivist" will recognize that many differences of opinion can be corrected in real-time (e.g., when you say "they", I know you actually mean "he", and so I translate your erroneous use of "they" into "he" in real-time in order to proceed with communication). However, this real-time correction is an overhead; it takes resources; it adds friction to the protocol. So, a prescriptivist says "You know what? The word you're supposed to use is 'he'. I'm tired of having to translate what you're saying into something that is actually intelligible, so please use 'he' when that is the most precise word, so that I don't have to keep figuring out what you're saying."
In short, everyone is a "prescriptivist"; everyone corrects his toddler's speech.
Or do you mean educated and not retarded people specifically?
* Why shouldn't an adult have his language corrected? That's protocol negotiation; what here elevates an adult above a child? Could the difference be that you experience embarrassment or indignation more readily than a child? Maybe the fault is in your inability to manage your own emotions.
* Ironically, the people who tend to argue for relaxed precision are the only ones actually trying to legislate language (i.e., to use a government's violent coercion to impose prescriptions).
What a lot of hogwash! My web browser is the BIGGEST, BLOATEST, CPU SUCKER on my machine! And I compile code all day!
Browsers these days totally suck arse and waste enormous resources that I'd rather spend elsewhere. This CSS rubbish just makes it even worse.
And I'm already blocking ads and nearly all javascript. When I run without that protection, the problem is even worse.
I can't imagine the la-la land you think you live it. It's a foreign place more foreign than any I've ever seen.
Is this going to be another mechanism for sites to fingerprint your browser sans JS, by observing how your CPU/libc calculates trig functions?
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.
As you can turn it off ...