Skip to content

Commit 216d441

Browse files
committed
[css-link-params-1] Add priv/sec sections.
1 parent 48189e2 commit 216d441

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

css-link-params-1/Overview.bs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,3 +282,27 @@ accessible with the ''env()'' function in stylesheets.
282282
Note: When we define ''env(parent --color)'' to jump up a scope level,
283283
you won't need to do the rename;
284284
''@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.

0 commit comments

Comments
 (0)