You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a build pipeline this would work very much like Autoprefixer - refactoring CSS after it's gone through SASS/LESS/whatever, adding the missing pieces.
Based on PostCSS a "simple" processor could identify all the rules using viewport units (e.g. width: 50vw;), aggregate them into a content: "viewport-units-buggyfill; width: 50vw;"; property and add them back to the declaration block. The processor should also check for the existence of the content property an issue a warning/error if one were created on generated content.
How to handle a css rule which already has a content property? Currently my plugin just send out a warning. I think a better way is to append our hack strings and dynamically remove it when hack script runs.
In a build pipeline this would work very much like Autoprefixer - refactoring CSS after it's gone through SASS/LESS/whatever, adding the missing pieces.
Based on PostCSS a "simple" processor could identify all the rules using viewport units (e.g.
width: 50vw;
), aggregate them into acontent: "viewport-units-buggyfill; width: 50vw;";
property and add them back to the declaration block. The processor should also check for the existence of thecontent
property an issue a warning/error if one were created on generated content.This would automate turning
into
thus making viewport units work "immediately" in old Android Stock Browsers (amongst others).
The text was updated successfully, but these errors were encountered: