Slashdot Mirror


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

135 comments

  1. pfft by cascadingstylesheet · · Score: 3, Funny

    Can it do statistics? That's what I want to know ...

    1. Re:pfft by Anonymous Coward · · Score: 0

      It's 2019. "Can it do Big Data Analytics mediated by strong AI?" is the question you need to be asking.

    2. Re:pfft by ceoyoyo · · Score: 1

      Sure. The vast majority of stats is adding and subtracting. Square roots are handy though.

    3. Re:pfft by ceoyoyo · · Score: 1

      Edit: adding, subtracting, multiplying and dividing.

    4. Re: pfft by Anonymous Coward · · Score: 0

      Can it do sequences of commands?

    5. Re:pfft by Anonymous Coward · · Score: 0

      Depends. If they've added exp then yes, you'll be able to do basic stuff like normal distributions, and you could probably approximate some of the more complicated stuff "well enough". If not, no.

  2. Why? by thereddaikon · · Score: 1

    Seriously, why? CSS is meant to make pages prettier. Does it need math functions? Are they going to make turing complete?

    1. Re:Why? by Anonymous+Brave+Guy · · Score: 1

      CSS is meant to make pages prettier.

      That's one thing it can do, but CSS is also the main tool for setting up different page layouts, and not everything has to be a rectangular grid.

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    2. Re:Why? by GeLeTo · · Score: 4, Informative

      This is needed for CSS animations. Now you can do some things like moving an object along a sine path with CSS transitions, but this will be more powerful and in many cases - more intuitive.

    3. Re:Why? by Anonymous Coward · · Score: 0

      Graphics uses a ton of math - what do you think a GPU does?

    4. Re:Why? by Anonymous Coward · · Score: 3, Insightful

      Great, because the average webpage didn't use enough CPU time without this.

    5. Re:Why? by SuricouRaven · · Score: 2

      More importantly, if you have sine, you can easily incorporates circles into your layout. A whole new class of stylish but unintuitive interface is open now!

    6. Re:Why? by Anonymous Coward · · Score: 0

      Better question is why it *didn't* have basic math functions. The need for this has popped up again and again while I've been doing webpages.

    7. Re:Why? by Anonymous Coward · · Score: 0

      Bezier curves next please!

    8. Re:Why? by grumpy-cowboy · · Score: 1

      Ho nice! It will be easier to add more useless animations that add _nothing_ useful to web pages. Please add bouncing cats all over the web pages! :)

      --
      Will $CURRENT_YEAR be the year of the Linux Desktop?
    9. Re:Why? by Anonymous Coward · · Score: 1

      You're doing it wrong.

      CSS is a declarative language for layout. It works ok for static layouts. Dynamic elements stretch its limits - simple things are doable, but the complexity ramps up quickly. If you're using it for animation, you're using the wrong tool for the job.

      To web developers, CSS is like XML (and violence): if it doesn't solve your problem, just use more. A pox on the lot of them.

    10. Re: Why? by Anonymous Coward · · Score: 1

      Trig functions are stupid easy for CPUs to work with. 15 years ago we were well into the era when many games were using trig to transform audio in real-time purely in software. Even today's el cheapo smartphones would brush that off, and that's way more complex than what your typical web developer would need.

    11. Re:Why? by MrDoh! · · Score: 1

      Bouncing cats, with wide circular eyes, all in css!

      --
      Waiting for an amusing sig.
    12. Re:Why? by UnknownSoldier · · Score: 1

      No, it is NOT needed. You should be doing this in JavaScript -- not in a (static) layout language.

      Where will this bloat end? Adding a scripting language??? Because there will always be some "wouldn't it be nice to be able to do ...". We _already_ have requestAnimationFrame for smooth, jank free 120 Hz animation. To see if your browser supports 120 fps check use testufo.

    13. Re:Why? by SirSlud · · Score: 0

      Unless you're doing something truly weird, your CPU isn't spending much time at all on even heavy web browsing. Even the heaviest of web pages are not going to exceed a few % usage of your cpu. A lot of people around here seem to base a lot of their perceptions and priorities on what things were like 15 years ago.

      --
      "Old man yells at systemd"
    14. Re:Why? by Anonymous Coward · · Score: 0

      Tell that to my CPU. Instances of web browsers (it doesn't matter, chrome, firefox, edge, take your pick) that are frequently using 16% of my total CPU usage (yes, running a core at 100%) and tell me that it doesn't use much CPU time. If you familiarize yourself with how web frameworks work (Angular, I'm looking at you specifically), you wouldn't be surprised. These things run a refresh cycle where the refresh cycle continues to run until everything settles down. If a cross dependency gets created, the thing literally never settles. Toss in that the average web programmer has no idea how the framework they're using actually works, and is clueless on how to avoid these cyclic dependencies, and yeah....

    15. Re:Why? by slack_justyb · · Score: 4, Funny

      A lot of people around here seem to base a lot of their perceptions and priorities on what things were like 15 years ago.

      That's pretty much Slashdot in a nutshell. Shoot, say something like systemd, wayland, Java performance, IPv6 deployment, or cloud computing and you're likely to get a stack of punch cards thrown at you for being a heretic.

    16. Re:Why? by tepples · · Score: 2

      If you're using it for animation, you're using the wrong tool for the job.

      Then what is the right tool for the job, particularly if you're site's audience includes the sort of "I don't want any script in the browser, ever" tech purists who inhabit Slashdot?

    17. Re:Why? by tepples · · Score: 1

      We _already_ have requestAnimationFrame

      Not if the user has chosen to disable script on your site for any of several reasons:

      - Wanting to maintain a sense of separation between documents, which ought to be static on the client side (even if they are dynamic on the server side), and applications, which ought to be native and downloadable
      - Fear of being tracked, particularly through the subpoena exception in every privacy policy
      - Your scripts not having been marked as licensed under a free software license

    18. Re:Why? by Anonymous Coward · · Score: 1

      Do you think turning CSS into Javascript will please the people who don't want to run Javascript, or just sour them on CSS?

    19. Re:Why? by Anonymous Coward · · Score: 0

      Flash.

    20. Re:Why? by steveb3210 · · Score: 1

      If you're doing 3d transformations in CSS, these are very helpful.

    21. Re:Why? by Anonymous Coward · · Score: 0

      that are frequently using 16% of my total CPU usage (yes, running a core at 100%)

      Stop visiting dodgy porn sites trying to run blockchain-mining software in your browser.

    22. Re:Why? by Chelloveck · · Score: 3, Funny

      That's pretty much Slashdot in a nutshell. Shoot, say something like systemd, wayland, Java performance, IPv6 deployment, or cloud computing and you're likely to get a stack of punch cards thrown at you for being a heretic.

      Punch cards? Damned whippersnappers. Paper tape is all you need you little snots! Now, get off my lawn!

      --
      Chelloveck
      I give up on debugging. From now on, SIGSEGV is a feature.
    23. Re:Why? by Immerman · · Score: 1

      Because any time you want to move or place anything in a not-perfectly-vertical-or-horizontal straight line, trigonometry is the natural solution. You can kludge together various alternatives, but trig handles everything seamlessly and consistently. They are the fundamental tools necessary for translating back and forth between rectangular grid coordinates, and angle-and-distance polar coordinates.

      You can do computer graphics and animations without them, but it's like juggling with your hands tied behind your back - you work much too hard, and the result is never as good as it could have been.

      Besides, most modern CPUs have single-instruction trig functions built in, they're that important, so why not make them accessible?

      --
      --- Most topics have many sides worth arguing, allow me to take one opposite you.
    24. Re:Why? by Immerman · · Score: 1

      Heck, they're very useful for 2D transformations. It's almost impossible to rotate something in 2D without using trig.

      Frankly, I'd say anyone who works with computer generated/animated graphics, and doesn't already understand the usage and value of trig functions, has missed an incredibly important part of their education that should be rectified as soon as possible.

      --
      --- Most topics have many sides worth arguing, allow me to take one opposite you.
    25. Re:Why? by Anonymous Coward · · Score: 0

      If you're doing 3D transformations in CSS, you're doing it wrong.
      We're talking about web pages here, not GUI apps.

    26. Re:Why? by WaffleMonster · · Score: 1

      Unless you're doing something truly weird, your CPU isn't spending much time at all on even heavy web browsing. Even the heaviest of web pages are not going to exceed a few % usage of your cpu. A lot of people around here seem to base a lot of their perceptions and priorities on what things were like 15 years ago.

      Percentages might look low but typically it's because only a single thread of execution is being utilized. I routinely find myself in CPU limited territory when viewing large tables of data from browser.

    27. Re:Why? by ilsaloving · · Score: 1

      Maybe they could create a new browser-specific language designed to handle trivial in-page tasks, and ONLY trivial in-page tasks?

      You know, like Javascript *used* to be before they kept extending it and extending it beyond all reasonable limits and turning it into the ginormous mess that people are now trying to get away from?

      "Mod it till it breaks" is fine for Bethesda games, but it's been a never ending series of trainwrecks in the rest of the computer industry.

    28. Re: Why? by Anonymous Coward · · Score: 1

      Trig functions are stupid easy for CPUs to work with. 15 years ago we were well into the era when many games were using trig to transform audio in real-time purely in software. Even today's el cheapo smartphones would brush that off, and that's way more complex than what your typical web developer would need.

      Said nobody ever.

      While you can use lookup tables for stupidly fast sine, cosine and tangent functions you still have to do the hard yards for sqrt(). This is why most game engines doing bounds checks don't use c = sqrt((a * a) + (b * b)), they put up with cSquared = (a * a) + (b * b). Same result list, much cheaper maths.

    29. Re: Why? by Anonymous Coward · · Score: 0

      Give a simple tool to some programmers and they might abuse it.

    30. Re:Why? by Anonymous Coward · · Score: 0

      thanks for the reminder shill, moron?

    31. Re:Why? by mpercy · · Score: 1

      Aaahhhh ahhhhhh! Flash!

    32. Re:Why? by Anonymous Coward · · Score: 0

      A lot of people around here seem to base a lot of their perceptions and priorities on what things were like 15 years ago.

      That's pretty much Slashdot in a nutshell. Shoot, say something like systemd, wayland, Java performance, IPv6 deployment, or cloud computing and you're likely to get a stack of punch cards thrown at you for being a heretic.

      Using the words "java" and "performance" in the same sentence is JUST PLAIN WRONG."

      Billions of devices run java. None of them do it well.

    33. Re:Why? by Anonymous Coward · · Score: 0

      Quit rotating stuff in CSS!!! CSS is for layout. Think newspaper, not TV set.

    34. Re:Why? by Anonymous Coward · · Score: 0

      Heck, they're very useful for 2D transformations. It's almost impossible to rotate something in 2D without using trig.

      https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/rotate

    35. Re:Why? by Waccoon · · Score: 1

      Please don't say that animations make things more intuitive. Every web page today is trying desperately to mimic what they were doing in Flash 15 years ago, and it's not any more intuitive today using HTML5 than it was back then using single-threaded proprietary technology.

    36. Re:Why? by Immerman · · Score: 1

      Even in a newspaper, not everything benefits from a rectilinear layout.

      --
      --- Most topics have many sides worth arguing, allow me to take one opposite you.
    37. Re:Why? by billybob2001 · · Score: 1

      More importantly, if you have sine, you can easily incorporates circles into your layout.

      x^2 + y^2 = r^2 is enough for circles without trig.

    38. Re:Why? by Anonymous Coward · · Score: 0

      Depends on your definition of well doesn't it? Apparently it is doing something right if billions of devices are running Java.

    39. Re:Why? by SuricouRaven · · Score: 1

      Now try rewriting that to do polar to Cartesian coordinate transform.

    40. Re:Why? by ponraul · · Score: 1

      Writing games.

    41. Re:Why? by Anonymous Coward · · Score: 0

      Yes.

    42. Re:Why? by DeVilla · · Score: 1

      Actually, I was assuming something similar. The "I don't want any script in the browser, ever" crowd is the eventual target as the slowly add enough to be able to do the things in CSS that people hates flash & javascript for. They aren't there yet, but I wonder how far they are from it?

      Can they implement CSS "Punch the monkey"? Can they embed CSS tracking IDs? Can they obscure link actual link targets with it? Can the exfiltrate information with it?

    43. Re:Why? by Lost+Race · · Score: 1

      Savior of the Universe!

    44. Re:Why? by Anonymous Coward · · Score: 0

      Then what is the right tool for the job, particularly if you're site's audience includes the sort of "I don't want any script in the browser, ever" tech purists who inhabit Slashdot?

      That's like asking "What's the right vaccine for an anti-vax family"? Classic koan riddle.

      No one cares about whiny tech purists. They're less than .01% of the market. Except in very rare cases, with a niche site like slashdot. Then the answer is "Don't use animations. WTF were you thinking?"

      Otherwise, use javascript. Or wait for web assembly and use a better language. CSS is not the answer.

  3. Soon you will mine cryptocrrency with CSS by xack · · Score: 4, Funny

    Whats with all the js, css, wasm, webgl malware vectors, but hey no more flash right?

    1. Re:Soon you will mine cryptocrrency with CSS by DickBreath · · Score: 0

      Forget cyptocurrency.

      Just wait until CSS has new features designed SPECIFICALLY to support advertising! It will be amazing and wonderful! Ads like you've never seen before! Especially if CSS can pull in ads with executable code from third party web sites!

      --

      I'll see your senator, and I'll raise you two judges.
    2. Re:Soon you will mine cryptocrrency with CSS by SurenEnfiajyan · · Score: 1

      And finally hack NASA with HTML.

  4. interesting by Anonymous Coward · · Score: 3, Insightful

    Taking javascript out of the equation is more than welcome.

    1. Re:interesting by ilsaloving · · Score: 1

      Until CSS becomes the next Javascript cause people keep feeling the need to extend it well beyond what it was ever intended to go.

      Kinda like what happened to Javascript, as a matter of fact.

  5. So CSS will replace JavaScript? by Anonymous Coward · · Score: 0

    If CSS could replace JavaScript that would be lovely for web designers :P.

  6. Add fast fourier transform too by Anonymous Coward · · Score: 0

    Web browsers aren't wasteful enough yet...

  7. Why not? by sjbe · · Score: 1

    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?

    1. Re:Why not? by Anonymous Coward · · Score: 0

      If you can't think of a use for them, it's likely just because you don't know math.

  8. Rounded title bars by aXi · · Score: 0

    Finally mathematically defined rounded title bars :-)

  9. Give us :has() by Anonymous Coward · · Score: 0

    That's great but can we PLEASE get :has() that developers have been asking for for f*ing years?

  10. CSS3+HTML = already Turing-complete by Anonymous Coward · · Score: 0

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

  11. Already Turing-complete! by Anonymous Coward · · Score: 0

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

  12. Objokes by nospam007 · · Score: 4, Funny

    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

    1. Re:Objokes by Anonymous Coward · · Score: 1

      Trigonometry puns are a sine of insanity.

    2. Re:Objokes by Opyros · · Score: 1

      You paddle out, turn around and raise,
      And baby, that's all there is to the cosine craze
      -The Beach Boys

      (O.K., I know the lyric is supposed to be "coastline", but that's how it always sounds to me.)

  13. English, do you speak it? by l2718 · · Score: 1

    While the study of these functions is called "trigonometry", the functions themselves are called trigonometric.

    1. Re:English, do you speak it? by Anonymous Coward · · Score: 0

      You're probably one of those people who say "whilst", huh?

    2. Re:English, do you speak it? by K.+S.+Kyosuke · · Score: 1

      the functions themselves are called trigonometric

      Except for the cyclometric ones?

      --
      Ezekiel 23:20
  14. read the original github issue by Jeremy+Erwin · · Score: 1

    [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

    AmeliaBR: Once you start doing graphical layouts involving arcs and stuff, you need trig functions to convert from width/height distances to angular distances

    1. Re:read the original github issue by lgw · · Score: 0, Flamebait

      AmeliaBR: Once you start doing graphical layouts involving arcs and stuff, you need trig functions to convert from width/height distances to angular distances

      Translation: my website is only massively annoying. I need it to be even more annoying than previously thought possible, and the CPU need to be pegged permanently at 100%.

      --
      Socialism: a lie told by totalitarians and believed by fools.
  15. Replacing it with something worse though? by Anonymous Coward · · Score: 0

    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! ;)

  16. Trigonometry functions?! by DontBeAMoran · · Score: 4, Insightful

    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
    1. Re:Trigonometry functions?! by dmt0 · · Score: 4, Informative

      Actually that exists in native CSS: https://developer.mozilla.org/...

      Alas, as long as you need support for dreaded IE11, you're out of luck: https://caniuse.com/#feat=css-...

    2. Re: Trigonometry functions?! by Anonymous Coward · · Score: 0

      They have already added variables to css with var() that can do exactly that. Most browsers support it.

    3. Re:Trigonometry functions?! by DontBeAMoran · · Score: 1

      You know what's ironic? That fucking caniuse website doesn't even work with Safari 9.1.3, which is barely three years old.

      What are people fucking doing that a three years old browser can't even display basic content?

      --
      #DeleteFacebook
    4. Re:Trigonometry functions?! by UnknowingFool · · Score: 1

      Maybe because Safari 9.1.3 is obsolete and has been replaced with 3 newer versions since then. Chrome from that time period (about 30’versions ago) isn’t supported either and not guaranteed to work with anything.

      --
      Well, there's spam egg sausage and spam, that's not got much spam in it.
    5. Re:Trigonometry functions?! by DontBeAMoran · · Score: 1

      That doesn't negate the fact that the website displays their interface but does not display the requested item.

      It's like everything is going through javascript these days for no fucking reason.

      --
      #DeleteFacebook
    6. Re:Trigonometry functions?! by UnknowingFool · · Score: 1

      It does if you use a supported version of Safari.

      --
      Well, there's spam egg sausage and spam, that's not got much spam in it.
    7. Re:Trigonometry functions?! by Anonymous Coward · · Score: 0

      .. but every time you add a tool to your system, it's another security risk, another thing to slow your system down.

      How exactly is a CSS preprocessor like SASS/SCSS a security risk? How exactly does it slow your system down?

  17. And when will HTML support come? by SurenEnfiajyan · · Score: 0

    CSS isn't bloated enough. It also needs HTML support. I'm looking forward.

    1. Re:And when will HTML support come? by Anonymous Coward · · Score: 0

      CSS isn't bloated enough. It also needs HTML support. I'm looking forward.

      Yes, CSS needs HTML support with CSS.

    2. Re:And when will HTML support come? by SurenEnfiajyan · · Score: 1

      You got it.

    3. Re:And when will HTML support come? by SurenEnfiajyan · · Score: 1

      Also JS.

    4. Re:And when will HTML support come? by Anonymous Coward · · Score: 0

      Dude, you can't write a systemd web frontend without bloated tools.

  18. Noun adjunct (attributive noun; noun [pre]modifie) by Anonymous Coward · · Score: 1

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

  19. Yawn by Anonymous Coward · · Score: 0

    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.

    1. Re: Yawn by Anonymous Coward · · Score: 0

      CSS now has Flexbox and Grid Layout which solve all the remaining edge cases that weren't solvable with the box-model approach

    2. Re: Yawn by Anonymous Coward · · Score: 0

      CSS now has Flexbox and Grid Layout

      Flex ALSO lacks required feedback mechanisms and grid layouts are STATIC far from any rational expression of semantic intent as you can possibly get.

      all the remaining edge cases that weren't solvable with the box-model approach

      Clueless rubbish.

  20. Trig for what? Triangulating your position?? by Anonymous Coward · · Score: 0

    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

    1. Re:Trig for what? Triangulating your position?? by Anonymous Coward · · Score: 0

      Go suck some trucker cock. It would be a more productive use of your time.

    2. Re:Trig for what? Triangulating your position?? by Anonymous Coward · · Score: 0

      You just projected how you misuse your time as you abuse the law stalking Apk constantly with your unidentifiable anonymous trollings. Go away.

    3. Re:Trig for what? Triangulating your position?? by Anonymous Coward · · Score: 0

      You, APK, just abuse your own asshole by getting it stuffed with trucker cock all day every day.

    4. Re:Trig for what? Triangulating your position?? by Anonymous Coward · · Score: 0

      See? You even have weird dreams about Apk in addition to stalking him. Your fantasies about Apk are twisted. Just like you.

    5. Re:Trig for what? Triangulating your position?? by Anonymous Coward · · Score: 0

      Are you fucking retarded?

    6. Re:Trig for what? Triangulating your position?? by Anonymous Coward · · Score: 0

      Are you? Apk's correct trigonometry's used for triangulating positional data. Search trigonometry radio triangulation on any search engine for proof.

    7. Re:Trig for what? Triangulating your position?? by Anonymous Coward · · Score: 0

      Yes, yes he is. APK just needs to confirm it to everyone on a near daily basis.

    8. Re:Trig for what? Triangulating your position?? by Anonymous Coward · · Score: 0

      APK's right though. You can use trig to find positions of things. His question asking why it's used is actually a valid one.

    9. Re:Trig for what? Triangulating your position?? by Anonymous Coward · · Score: 0

      We get it. You are a retard, now shut your pie hole.

    10. Re:Trig for what? Triangulating your position?? by Anonymous Coward · · Score: 0

      You're the anonymous troll who stalks APK. He always makes you look as stupid as he proves you are.

  21. Variables by Anonymous Coward · · Score: 0

    Time for CSS to become a real programming language with variables and functions.

    1. Re:Variables by Anonymous Coward · · Score: 0

      Time for CSS to become a real programming language with variables and functions.

      Then there would be a huge need for java style garbage collection. Undeclared variables used in OO programming in CSS would be a nightmare without effective garbage collection built in from the start. Good luck getting Mozilla, Microsoft, Apple and Google to agree upon how to implement garbage collection in browsers which would become essentially little more than HTML and CSS compilers. JIT and java implementations are bad enough as they are without extending HTML into something which it was never designed for in the first place. First off Microsoft has far too much invested in what they have already done with .net and C# to change course completely. Google would never agree and Apple might take the idea of CSS with variable and copyright the language it just to make sure it never happens!

    2. Re: Variables by Anonymous Coward · · Score: 0

      They already added variables and most browsers support them.

    3. Re:Variables by WaffleMonster · · Score: 1

      Time for CSS to become a real programming language with variables and functions.

      CSS is a domain specific language not a general purpose language.

  22. D or R ?!? (Or G...) by Hallux-F-Sinister · · Score: 1

    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.
    1. Re:D or R ?!? (Or G...) by Anonymous Coward · · Score: 0

      May be because the radian is the unit of the SI?
      https://en.wikipedia.org/wiki/International_System_of_Units

    2. Re:D or R ?!? (Or G...) by Anonymous Coward · · Score: 0

      CSS has angular units, so you'd say sin(1rad) or sin(90deg) or sin(100grad).

  23. GeLeTo: You are fined five credits for by Anonymous Coward · · Score: 0

    ...violations of the Verbal Morality Statute: to wit, using the "CSS" and "intuitive" in the same sentence.

  24. Yeah by Ryanrule · · Score: 1

    So I guess that trig I learned WILL be useful in my life.

  25. The real question... by mobby_6kl · · Score: 1

    The real question is, when will I get support for trig functions?

    1. Re:The real question... by Immerman · · Score: 1

      As soon as you sit down and learn them. Here, this image contains most of the information that you need to effectively use basic trig, and will help you to visualize how the primary trig functions interact: https://commons.wikimedia.org/...

      sine and cosine are probably the most important ones, as they decompose angle-and-distance polar coordinates into (x,y) rectangular ones, and it's extremely difficult to perform rotations or general-case not-perfectly-horizontal-or-vertical translations without them.

      --
      --- Most topics have many sides worth arguing, allow me to take one opposite you.
  26. Sweet by pak9rabid · · Score: 1

    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?

  27. Re:Noun adjunct (attributive noun; noun [pre]modif by tepples · · Score: 1

    Prescriptivists would claim that the existence of "trigonometric" makes it nonstandard to use "trigonometry" as an adjunct noun.

  28. constants by Anonymous Coward · · Score: 0

    They are in the pileline:
    https://wiki.csswg.org/ideas/constants
    I agree with you: constants should be in CSS far before trig.

  29. where the fuck is zeta? by Anonymous Coward · · Score: 0

    Fucking bigots.

  30. Such odd priorities by Medievalist · · Score: 4, Insightful

    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.

    1. Re:Such odd priorities by Anonymous Coward · · Score: 0

      I just style the label tag attached to an upload field

    2. Re:Such odd priorities by Anonymous Coward · · Score: 0

      I tried several variations on that theme, but couldn't get it to work seamlessly on both an iPhone and a Windows Surface without surreal amounts of code.

      Responsive design is hard enough without having one type of button be completely unstylable. :(

    3. Re:Such odd priorities by Zontar+The+Mindless · · Score: 1

      The file upload button is unstylable.

      This is entirely by design, and there's actually an excellent reason for it.

      --
      Il n'y a pas de Planet B.
    4. Re:Such odd priorities by vyvepe · · Score: 1

      The design si broken when you can work around it with "hundreds of lines of code".

  31. No, they would not. by Anonymous Coward · · Score: 0

    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.

    1. Re:No, they would not. by Anonymous Coward · · Score: 0

      In short, everyone is a "prescriptivist"; everyone corrects his toddler's speech.

      But not everyone is an "asshole"; not everyone "corrects" the speech of other adults.

  32. An Unamerican? by Anonymous Coward · · Score: 0

    Or do you mean educated and not retarded people specifically?

  33. I've translated "asshole" to "leftist SJW" by Anonymous Coward · · Score: 0

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

  34. WTF world are you living in?! by Anonymous Coward · · Score: 0

    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.

  35. Fingerprinting by Anonymous Coward · · Score: 0

    Is this going to be another mechanism for sites to fingerprint your browser sans JS, by observing how your CPU/libc calculates trig functions?

  36. Oh just fuck off by aybiss · · Score: 1

    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.
  37. Just as long ... by Anonymous Coward · · Score: 0

    As you can turn it off ...