- From: Surma via GitHub <sysbot+gh@w3.org>
- Date: Thu, 27 Apr 2017 11:10:19 +0000
- To: public-houdini-archive@w3.org
surma has just created a new issue for https://github.com/w3c/css-houdini-drafts:
== [css-typed-om] Allow 'none' for CSSImageValue ==
`CSSImageValue` cannot represent the `none` value that both `background-image` and `border-image` accept.
This gets especially annoying when working with Custom Properties:
[`registerProperty()`](https://drafts.css-houdini.org/css-properties-values-api/#the-registerproperty-function) is currently spec’d to throw if now `initialValue` is defined when `syntax` is anything but `*`.
If I define a custom property with `syntax: <image>`, I have no way of specifying an initial value of no image except for something like
```js
CSS.registerProperty({
name: '--image',
syntax: '<image>',
initialValue: 'url(data:image/png,)',
});
```
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/400 using your GitHub account
Received on Thursday, 27 April 2017 11:10:25 UTC