acterhd
2016-07-31
Hello. I have questions. How to declare custom type of custom CSS variables? Also, browsers (include chrome) never will support CSS4 and CSSOM specifications?
Hello. I have questions. How to declare custom type of custom CSS variables? Also, browsers (include chrome) never will support CSS4 and CSSOM specifications?
Why would you need to declare a type? Could you give an example use case?
For example, CSS animation with variables.
This is going to be possible with the Houdini Properties and Values API
E.g.
CSS.registerProperty({
name: '--my-color',
syntax: CSSColorValue,
inherits: false,
initial: 'red',
});
Thanks, Ian