Skip to content

Commit e9edde3

Browse files
committed
[cssom] Give advice for specs that define CSS.foo() functions
Fixes w3c#180.
1 parent 13381d5 commit e9edde3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cssom/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ spec:css-position-3; type:property; text:left
105105
spec:html5; type:element; text:style
106106
spec:css-namespaces-3; type:dfn; text:namespace prefix
107107
spec:dom; type:interface; text:Document
108+
spec:html; type:dfn; text:ascii case-insensitive
109+
spec:html; type:dfn; text:case-sensitive
108110
</pre>
109111

110112
<script src=https://resources.whatwg.org/file-issue.js defer data-file-issue-url="https://github.com/w3c/csswg-drafts/issues/new?title=%5Bcssom%5D%20"></script>
@@ -2648,6 +2650,11 @@ The <dfn method for=CSS>escape(<var>ident</var>)</dfn> method must return the re
26482650
<pre>var element = document.querySelector('a[href="#' + CSS.escape(fragment) + '"]');</pre>
26492651
</div>
26502652

2653+
Specifications that define static functions on the {{CSS}} interface and want to
2654+
store some state should store the state on the <a spec=html>current global
2655+
object</a>'s <a spec=html>associated <code>Document</code></a>.
2656+
<!-- https://github.com/w3c/csswg-drafts/issues/180 -->
2657+
26512658

26522659
Resolved Values {#resolved-values}
26532660
==================================

0 commit comments

Comments
 (0)