flackr / scroll-timeline

A polyfill of ScrollTimeline.
Apache License 2.0
934 stars 89 forks source link

Have the parser play nice with nested CSS #133

Open bramus opened 1 year ago

bramus commented 1 year ago

This does not work in a browser that supports CSS Nesting but no Scroll-Driven Animations:

body {
  div {
    animation: move linear;
    animation-timeline: scroll();
  }
}

When removing the nesting, the polyfill works fine.

Demo: https://codepen.io/bramus/pen/XWoWejQ/64471303f33661702c983e3b4b73a83a

eloyesp commented 6 months ago

Is there any way to prevent this from crashing the parser, to make it ignore that file, for example?