We currently serialize some calc expressions like `calc(1 * min(nan*3px, 0px))` incorrectly to `min(NaN * 1px, 0px)`, instead of `calc(NaN * 1px)`. Not sure what specifically causes this as some other tests using `min`/`max` and `NaN` work fine. WPT tests: https://github.com/web-platform-tests/wpt/blob/master/css/css-values/calc-infinity-nan-serialize-length.html#L39-L40
Bug 1823251 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
We currently serialize some calc expressions like `calc(1 * min(nan*3px, 0px))` incorrectly simplify to `min(NaN * 1px, 0px)`, instead of just `calc(NaN * 1px)`. WPT tests: https://github.com/web-platform-tests/wpt/blob/master/css/css-values/calc-infinity-nan-serialize-length.html#L39-L40
We currently serialize some calc expressions like `max(NaN * 1px, 15px)` incorrectly simplify to `max(NaN * 1px, 15px`, instead of just `calc(NaN * 1px)`. WPT tests: https://github.com/web-platform-tests/wpt/blob/master/css/css-values/calc-infinity-nan-serialize-length.html#L39-L40
We currently serialize some calc expressions like `max(NaN * 1px, 15px)` incorrectly deserialize to `max(NaN * 1px, 15px)`, instead of just `calc(NaN * 1px)`. They should be simplified to just `NaN` (with unit calc). WPT tests: https://github.com/web-platform-tests/wpt/blob/master/css/css-values/calc-infinity-nan-serialize-length.html#L39-L40