The startScrollOffset and endScrollOffset points on a scroll timeline are currently defined with the following CSS grammar:
auto | <length> | <percentage>
That should be
auto | <length-percentage>
in order to allow calc() expressions combining lengths and percentages, such as calc(100% - 5rem).
Same for the <scroll-offset> part of the scroll() function definition.