[csswg-drafts] [css-env-1] variables should be exposed to script

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

== [css-env-1] variables should be exposed to script ==
This is follow up to https://drafts.csswg.org/css-env-1/#issue-c17a17b4

There was a proposal in pull/1817 to add an interface to the CSS interface. I don't believe this has shipped in any browser yet though.

```javascript
partial interface CSS {
  static readonly CSSUserAgentPropertyMap userAgentProperties;
};

interface CSSUserAgentPropertyMap : EventTarget {
  readonly maplike<CSSOMString, CSSOMString>;

  void addListener(EventListener? listener);
  void removeListener(EventListener? listener);
  attribute EventHandler onchange;
}
```

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

Received on Monday, 30 April 2018 18:10:27 UTC