File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -282,3 +282,27 @@ accessible with the ''env()'' function in stylesheets.
282
282
Note: When we define ''env(parent --color)'' to jump up a scope level,
283
283
you won't need to do the rename;
284
284
''@env --color: env(parent --color);'' will work just fine.
285
+
286
+
287
+ <h2 class="no-num no-ref" id=priv>
288
+ Privacy Considerations</h2>
289
+
290
+ This specification introduces no new privacy considerations.
291
+
292
+ <h2 class="no-num no-ref" id=sec>
293
+ Security Considerations</h2>
294
+
295
+ This specification introduces a new way to pass information to a linked resource,
296
+ potentially from a hostile source.
297
+
298
+ While no explicit handshake is established for this channel,
299
+ the use of ''env()'' to use the information
300
+ minimizes the chance that the linked resource
301
+ can be <em> surprised</em> by the information.
302
+ The only way for the page to be vulnerable
303
+ is to somehow be using an <em> unknown</em> ''env()'' in their styles,
304
+ which will just result in invalid properties by default,
305
+ and be visible in the developer's Dev Tools.
306
+
307
+ Any hostile information can also only affect
308
+ individual CSS properties that the resource explicitly opts itself into.
You can’t perform that action at this time.
0 commit comments