source: node_modules/autoprefixer/lib/hacks/grid-start.js@ 2058e5c

Last change on this file since 2058e5c was 2058e5c, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Working / before login

  • Property mode set to 100644
File size: 670 bytes
Line 
1let Declaration = require('../declaration')
2
3class GridStart extends Declaration {
4 /**
5 * Do not add prefix for unsupported value in IE
6 */
7 check(decl) {
8 let value = decl.value
9 return !value.includes('/') && !value.includes('span')
10 }
11
12 /**
13 * Return a final spec property
14 */
15 normalize(prop) {
16 return prop.replace('-start', '')
17 }
18
19 /**
20 * Change property name for IE
21 */
22 prefixed(prop, prefix) {
23 let result = super.prefixed(prop, prefix)
24 if (prefix === '-ms-') {
25 result = result.replace('-start', '')
26 }
27 return result
28 }
29}
30
31GridStart.names = ['grid-row-start', 'grid-column-start']
32
33module.exports = GridStart
Note: See TracBrowser for help on using the repository browser.