[csswg-drafts] scroll offset values should use length-percentage type to allow calc() (#4340)

AmeliaBR has just created a new issue for https://github.com/w3c/csswg-drafts:

== scroll offset values should use length-percentage type to allow calc() ==
The [`startScrollOffset` and `endScrollOffset`](https://wicg.github.io/scroll-animations/#dom-scrolltimeline-startscrolloffset) 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>`](https://wicg.github.io/scroll-animations/#typedef-scroll-offset) part of the `scroll()` function definition.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4340 using your GitHub account

Received on Thursday, 19 September 2019 05:41:40 UTC