css-prefix #1293
Replies: 5 comments 5 replies
-
About caching, doesn't seem to need any specific for css-prefix as the base compiler already handles it. tools/internal/compiler/api/compile.ts Lines 32 to 35 in 97653ef |
Beta Was this translation helpful? Give feedback.
-
So, on top of my head, I have the following things:
|
Beta Was this translation helpful? Give feedback.
-
We should go for the name of the property and not the value as some names can be values and porperties. For value prefixes the corresponding property file should export an array of prefix visitors. |
Beta Was this translation helpful? Give feedback.
-
As we now finally have everything we need to start this there are some things we have to redesign according to what's been built. Since The visitor would accept a |
Beta Was this translation helpful? Give feedback.
-
Locking this as there doesn't seem to be a close feature for discussions and |
Beta Was this translation helpful? Give feedback.
-
Follow up to #1288.
Used to gather ideas and things to do.
As stated by @ematipico, we could implement css-prefix in a similar way to the linter (linter rules).
Each prefix application (as in per css rule and/or value) would have it's own file with an exported visitor.
So
transition
,animation
,filter
and all others would have their own individual file.Now because certain values also have prefixes (such as
flex
) we could either have a file for thedisplay
property or for theflex
value.css-prefix/prefixes/display.ts
vscss-prefix/prefixes/flex.ts
, What do you guys think?Another thing is browser support, as there aren't any existing target browser handling, we could provide a simple exported callback that would return whether the prefix should run or not for the target browser (maybe passed as a string for the time being?).
Or we could wait until an actual target browser implementation is present.
Here are some useful links to information on prefixes:
https://caniuse.com
http://shouldiprefix.com
Beta Was this translation helpful? Give feedback.
All reactions