postcss-viewport-fallback playground

Options

strategy

How the fallback is written

existingFallback

What counts as a fallback you wrote yourself

logicalFallback

What dvi and dvb fall back to

postcss.config.js


        

Input

Output

written by the plugin

        
        
        
declarations
0
at-rules
0
already had a fallback
0
time
0

What you are looking at

postcss-viewport-fallback is a PostCSS plugin. It gives dvh, svh, lvh and the other dynamic viewport units a vh / vw fallback that older browsers really apply: in calc(), next to var(), in custom properties, @media, @container and @keyframes. The plugin itself runs on this page, so the output is exactly what your build would get.

Add it to a project

npm install --save-dev postcss postcss-viewport-fallback