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

4 of 135 comments (clear)

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

    Taking javascript out of the equation is more than welcome.

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

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

  3. 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
  4. 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.