Running prefixer for nested objects
jsau- opened this issue · 0 comments
jsau- commented
At present it seems like the prefixer module is only invoked if:
- The property name does not begin with
@
- The value is not an object
- The value is not undefined
(See https://github.com/cristianbote/goober/blob/master/src/core/parse.js)
There are use-cases I can see for wanting to run the prefixer for property names where the value is an object. Examples might include wanting to prefix &::placeholder { /* ... */ }
to the following:
&::-webkit-input-placeholder { /* ... */ }
&:-moz-placeholder { /* ... */ }
&::-moz-placeholder { /* ... */ }
&:-ms-input-placeholder { /* ... */ }
&::-ms-input-placeholder { /* ... */ }
&::placeholder { /* ... */ }
Is there any danger in also running the prefixer on property names when the value is of type object? (I've checked the type declarations for the prefixer and at present it's expecting a value of type any
).