[csswg-drafts] [css-variables] support the var() function in @page blocks

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

== [css-variables] support the var() function in @page blocks ==
According to the discussion at https://bugs.chromium.org/p/chromium/issues/detail?id=763298, the `var()` function is not specced to work inside `@page` at-rule. However, using custom properties inside these blocks might be a reasonable requirement:

```css
:root {
  --margin: 3cm;
  --width: 1024;
  --height: 768;
}

@page {
  margin: var(--margin);
  size: calc(var(--width) * 1px) calc(var(--height) * 1px)
}
```

Relevant spec: https://drafts.csswg.org/css-variables/#funcdef-var


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

Received on Monday, 27 August 2018 08:12:41 UTC