servo/components/style/values
Emilio Cobos Álvarez cc09c2ffb1 style: Add basic support for nan / infinity in calc()
Fix some tests to:

  * Not assume `double` precision.
  * Account for recent working group resolution with regards to NaN: https://github.com/w3c/csswg-drafts/issues/7067#issuecomment-1111211295

Not sure I caught all, but normalizing to 0 was already our existing
behavior. This feature needs more work before it can be enabled more
generally, so make it nightly-only, for now.

Also, it's unclear per spec what the serialization for infinity*1s or so
should be. Right now we serialize to <very-big-number>s, which seems
reasonable, but some tests (but not others!) expect different behavior.

I left those untouched for now.

Differential Revision: https://phabricator.services.mozilla.com/D154883
2023-10-02 14:37:19 +00:00
..
animated style: Use style interpolation code for gradients 2023-10-02 14:37:19 +00:00
computed style: C++ ComputedTimingFunction uses Rust's timing function calculation 2023-10-02 14:37:19 +00:00
generics style: Implement atan2(), and enable calc() trigonometric functions by default on nightly 2023-10-02 14:37:19 +00:00
resolved style: C++ ComputedTimingFunction uses Rust's timing function calculation 2023-10-02 14:37:19 +00:00
specified style: Add basic support for nan / infinity in calc() 2023-10-02 14:37:19 +00:00
distance.rs style: Move fixed-point font types to Rust 2023-10-02 14:37:19 +00:00
mod.rs style: Support scroll-timeline-name longhand in style system 2023-10-02 14:37:19 +00:00