Skip to content

Commit c5657c2

Browse files
committed
[css-values-5] Ban attr(... type(<url>)) entirely for now. #5079
1 parent 68ce335 commit c5657c2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

css-values-5/Overview.bs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,9 +1941,15 @@ Ian's proposal:
19411941
If given as a ''type()'' function,
19421942
the value is parsed according to the <<syntax>> argument,
19431943
and substitutes as the resulting tokens.
1944+
For this purpose, ''&lt;url>'' is invalid as a <<syntax-single-component>>.
19441945
Values that fail to parse according to the syntax
19451946
trigger fallback.
19461947

1948+
Note: ''&lt;url>'' is banned because,
1949+
for now,
1950+
''attr()'' values can't be used in URLs at all
1951+
due to security concerns.
1952+
19471953
If given as the <css>number</css> keyword,
19481954
it causes the attribute's literal value,
19491955
after [=strip leading and trailing ASCII whitespace|stripping leading and trailing whitespace=],

0 commit comments

Comments
 (0)