View Code? Open in Web Editor
NEW
⚙ Transform CSS for use with smoothscroll-anchor-polyfill
Home Page: https://jonaskuske.github.io/smoothscroll-anchor-polyfill/#usage-css
License: MIT License
postcss-smoothscroll-anchor-polyfill's Issues
To stay in sync with this issue on the main polyfill , the following new behavior needs to be implemented:
Transpile
to
--scroll-behavior : smooth;
scroll-behavior : smooth;
by default, and only if the users browserslist
includes legacy browsers without support for CSS custom properties, include the font-family
workaround and transpile to
font-family : 'scroll-behavior: smooth;' ;
--scroll-behavior : smooth;
scroll-behavior : smooth;
Allow users to specify which transformation method to use through plugin configuration options:
{
browsers : Browserslist ,
method : 'fontFamily' | 'customProperty'
}