You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definitions here are little more than placeholders. We need to
improve the description in CSP such that HTML can hook into reasonable
definitions of the behavior that nonces require when executing the
"prepare a script" and "update a style block" algorithms. For the
moment, defining the attributes and pointing out to the CSP spec (and
to w3c/webappsec#463) is probably Good Enough(tm).
<dd>Also, the <code data-x="attr-style-title">title</code> attribute <span data-x="attr-style-title">has special semantics</span> on this element.</dd>
@@ -14783,6 +14788,16 @@ people expect to have work and what is necessary.
14783
14788
attribute is omitted, is "<code data-x="">all</code>", meaning that by default styles apply to all
14784
14789
media.</p>
14785
14790
14791
+
<p>The <dfn><code data-x="attr-style-nonce">nonce</code></dfn> attribute represents a
14792
+
cryptographic nonce ("number used once") which can be used by <cite>Content Security Policy</cite>
14793
+
to determine whether or not the style specified by an element will be applied to the document. The
14794
+
value is text. <ref spec="CSP"></p>
14795
+
14796
+
<p class="XXX">The processing model for the <code
14797
+
data-x="attr-style-nonce">nonce</code> attribute needs to be integrated into the <span>update a
14798
+
<code>style</code> block</span> algorithm. The current definition in <ref spec="CSP"> is fairly
14799
+
vague. See <a href="https://github.com/w3c/webappsec/issues/463">w3c/webappsec#463</a>.</p>
14800
+
14786
14801
<p>The <dfn><code data-x="attr-style-scoped">scoped</code></dfn> attribute is a <span>boolean
14787
14802
attribute</span>. If present, it indicates that the styles are intended just for the subtree
14788
14803
rooted at the <code>style</code> element's parent element, as opposed to the whole
@@ -14980,8 +14995,10 @@ own thing rather than part of the extended sentence -->
14980
14995
14981
14996
<div w-nodev>
14982
14997
14983
-
<p>The <dfn><code data-x="dom-style-media">media</code></dfn>, <dfn><code data-x="dom-style-type">type</code></dfn> and <dfn><code data-x="dom-style-scoped">scoped</code></dfn> IDL attributes must <span>reflect</span> the
14984
-
respective content attributes of the same name.</p>
<dd>(Non-normative) <cite><a href="http://www.iana.org/assignments/charset-reg/CP50220">CP50220</a></cite>, Y. Naruse. IANA.</dd> <!-- really should be "NARUSE, Y." or some such, but there's a western bias to these references for consistency. sorry. -->
115970
116013
115971
116014
<dt id="refsCSP">[CSP]</dt>
115972
-
<dd>(Non-normative) <cite><a href="https://w3c.github.io/webappsec/specs/content-security-policy/">Content Security Policy</a></cite>, B. Sterne, A. Barth. W3C.</dd>
116015
+
<dd><cite><a href="https://w3c.github.io/webappsec/specs/content-security-policy/">Content Security Policy</a></cite>, M. West, A. Barth, D. Veditz. W3C.</dd>
115973
116016
115974
116017
<dt id="refsCSS">[CSS]</dt>
115975
116018
<dd><cite><a href="https://drafts.csswg.org/css2/">Cascading Style Sheets Level 2 Revision 2</a></cite>, B. Bos, T. Çelik, I. Hickson, H. Lie. W3C.</dd>
0 commit comments