Intent to ship: CSS Values 4 Math functions

211 views
Skip to first unread message

CanadaHonk

unread,
Aug 3, 2023, 8:27:02 AM8/3/23
to dev-pl...@mozilla.org
As of today (Firefox 118), I intend to turn on 10 new CSS Values 4 Math functions by default on all platforms. Specifically, these functions: round, mod, rem, pow, sqrt, hypot, log, exp, abs, sign.

They have been in enabled in Nightly, behind the preferences: layout.css.round.enabled, layout.css.mod-rem.enabled, layout.css.exp.enabled, layout.css.abs-sign.enabled.

We now pass essentially all WPT tests for these functions, and they are part of Interop 2023. WebKit and Blink already ship most of these, with Blink missing a few currently.

Tom Ritter

unread,
Aug 3, 2023, 9:42:12 AM8/3/23
to CanadaHonk, dev-pl...@mozilla.org
Do the underlying calculations for these functions use the fdlibm
library? (Otherwise they will expose platform characteristics we have
been working to not expose to web content.)
> --
> You received this message because you are subscribed to the Google Groups "dev-pl...@mozilla.org" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dev-platform...@mozilla.org.
> To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/50944fe2-c494-4e95-873e-c241d661751cn%40mozilla.org.
Message has been deleted

Mike Taylor

unread,
Aug 3, 2023, 4:49:56 PM8/3/23
to Tom Ritter, CanadaHonk, dev-pl...@mozilla.org
Could you expand on these platform characteristics (that you don't want
to expose)?

thx,
Mike

Tiaan Louw

unread,
Aug 4, 2023, 7:00:16 AM8/4/23
to dev-pl...@mozilla.org, Tom Ritter, dev-pl...@mozilla.org, o...@oojmed.com
The "fdlibm" library is not used for any calculations in these functions.

On Thursday, August 3, 2023 at 3:42:12 PM UTC+2 Tom Ritter wrote:
Do the underlying calculations for these functions use the fdlibm
library? (Otherwise they will expose platform characteristics we have
been working to not expose to web content.)

On Thu, Aug 3, 2023 at 8:27 AM CanadaHonk <o...@oojmed.com> wrote:
>
> As of today (Firefox 118), I intend to turn on 10 new CSS Values 4 Math functions by default on all platforms. Specifically, these functions: round, mod, rem, pow, sqrt, hypot, log, exp, abs, sign.
>
> They have been in enabled in Nightly, behind the preferences: layout.css.round.enabled, layout.css.mod-rem.enabled, layout.css.exp.enabled, layout.css.abs-sign.enabled.
>
> We now pass essentially all WPT tests for these functions, and they are part of Interop 2023. WebKit and Blink already ship most of these, with Blink missing a few currently.
>
> Bug to turn on by default: https://bugzil.la/1814589
> Standard: https://drafts.csswg.org/css-values/#math
> Web platform tests: https://wpt.fyi/results/css/css-values
>
> --
> You received this message because you are subscribed to the Google Groups "dev-pl...@mozilla.org" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dev-platform+unsubscribe@mozilla.org.
Reply all
Reply to author
Forward
0 new messages