source: imaps-frontend/node_modules/inline-style-prefixer/es/plugins/sizing.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 542 bytes
Line 
1var prefixes = ['-webkit-', '-moz-', ''];
2
3var properties = {
4 maxHeight: true,
5 maxWidth: true,
6 width: true,
7 height: true,
8 columnWidth: true,
9 minWidth: true,
10 minHeight: true
11};
12var values = {
13 'min-content': true,
14 'max-content': true,
15 'fill-available': true,
16 'fit-content': true,
17 'contain-floats': true
18};
19
20export default function sizing(property, value) {
21 if (properties.hasOwnProperty(property) && values.hasOwnProperty(value)) {
22 return prefixes.map(function (prefix) {
23 return prefix + value;
24 });
25 }
26}
Note: See TracBrowser for help on using the repository browser.