Hi Seokho,

Curious, how do I enable this in Canary? I tried but the experimental features doesn't seem to enable this (unless I'm holding it wrong).

I guess given <https://chromium.googlesource.com/chromium/src/+/3d250cc6a43edde74f2870ef379545e5e6306dae> I'll be able to test soon enough, but it's really weird that this is shipping without being enabled as experimental first? I presume that means that no web developer has actually tested it or anything :/

In general I think this is probably fine, but if the tests in:


<https://wpt.fyi/results/css/css-values?label=master&label=experimental&aligned&q=infinity-nan>

are the only ones, that seems at best a bit scarce. There are no behavior tests for anything that aren't transforms?

Tangential, but it's clear that the safari implementation is totally broken in various ways (like serializing NaNdeg...).

I'm a bit scared of making too easy to get NaNs (and thus off-limit values like +inf / -inf in the layout engines) specially since limits across layout engines can diverge. I guess it's not anything you can't do subtracting massive numbers though, so it might be fine.

  -- Emilio

On 12/10/21 00:56, Seokho Song wrote:
Contact emails

0xdev...@gmail.com


Explainer

https://github.com/DevSDK/calc-infinity-and-NaN/blob/master/explainer.md <https://github.com/DevSDK/calc-infinity-and-NaN/blob/master/explainer.md>


Specification

https://drafts.csswg.org/css-values/#ref-for-math-function%E2%91%A1%E2%91%A0 
<https://drafts.csswg.org/css-values/#ref-for-math-function%E2%91%A1%E2%91%A0>


Design docs

https://bit.ly/349gXjq <https://bit.ly/349gXjq>


Summary

CSS calc() math function should allow infinity and NaN values by 'infinity', '-infinity', 'NaN' keywords or expressions that could be evaluated into infinity or NaN such as 'calc(1/0)'.



Blink component

Blink>CSS <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3ECSS>


Search tags

css <https://chromestatus.com/features#tags:css>, calc <https://chromestatus.com/features#tags:calc>, infinity <https://chromestatus.com/features#tags:infinity>, nan <https://chromestatus.com/features#tags:nan>


TAG review

Not required. It's a very small part of CSS.


TAG review status

Not applicable


Risks

Interoperability and Compatibility

This feature may have interoperability risks. Other browsers have not yet implemented this feature.

Gecko: No signal (https://bugzilla.mozilla.org/show_bug.cgi?id=1682444 <https://bugzilla.mozilla.org/show_bug.cgi?id=1682444>)

WebKit: Shipped/Shipping (https://bugs.webkit.org/show_bug.cgi?id=231044 <https://bugs.webkit.org/show_bug.cgi?id=231044>)

Web developers: No signals

Other signals:



Debuggability

N/A



Is this feature fully tested by web-platform-tests <https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md>?

Yes


Flag name

Requires code in //chrome?

False


Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1133390 <https://bugs.chromium.org/p/chromium/issues/detail?id=1133390>


Estimated milestones

99



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5657825571241984 <https://chromestatus.com/feature/5657825571241984>


Links to previous Intent discussions

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/4cT9dMkzVXE/m/aCT8B6PDAwAJ <https://groups.google.com/a/chromium.org/g/blink-dev/c/4cT9dMkzVXE/m/aCT8B6PDAwAJ>



This intent message was generated by Chrome Platform Status <https://chromestatus.com/>.


--
You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscr...@chromium.org <mailto:blink-dev+unsubscr...@chromium.org>. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/f98064ee-9d8a-44a5-bf37-4a32a5471496n%40chromium.org <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/f98064ee-9d8a-44a5-bf37-4a32a5471496n%40chromium.org?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/e44f5209-3eaa-5c1f-2615-1e476441113a%40mozilla.com.

Reply via email to