Re: [csswg-drafts] [css-variables] User Agent properties and variables

> Why the constant can't be used in calc? This does not meet expectations.

The constants **do** work in `calc()`, at least in my testing in Safari on the iPhone X simulator.

```
header {
  height: calc(44px + constant(safe-area-inset-top));
}
```

They also work in gradients:
```
linear-gradient(to bottom, black 0%, black constant(safe-area-inset-top), grey constant(safe-area-inset-top), grey 100%);
```

-- 
GitHub Notification of comment by dpogue
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1693#issuecomment-330867839 using your GitHub account

Received on Wednesday, 20 September 2017 14:24:27 UTC