[csswg-drafts] [css-env-1] Should env() really use <custom-ident>?

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-env-1] Should env() really use <custom-ident>? ==
https://drafts.csswg.org/css-env-1/#env-function says:

```
env() = env( <custom-ident> , <declaration-value>? )
```

However both Blink and WebKit use just `<ident>` for this.

Test-case can be:

```
<!doctype html>
<style>
div {
    width: 100px;
    height: 100px;
    background-color: green;
    background-color: env(inherit, red);
}
</style>
<div></div>
```

Which should be green per spec but is red in Blink and WebKit.

Should the spec be changed to use just `<ident>`, or should bugs be filed on browsers?

I made the same mistake in https://bugzilla.mozilla.org/show_bug.cgi?id=1462233, but @heycam caught it during review.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3262 using your GitHub account

Received on Monday, 29 October 2018 11:27:10 UTC