Skip to content

Commit 6089e24

Browse files
committed
[css-values-4] Per WG resolution, URLs are always utf-8 when used over the network. #9301
1 parent 6eb3727 commit 6089e24

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

css-values-4/Overview.bs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,24 @@ dl:not(.switch) dt { display: inline; }
4848
td > small { display: block; }
4949
</style>
5050

51+
<style>
52+
/* Put nice boxes around each algorithm. */
53+
[data-algorithm]:not(.heading) {
54+
padding: .5em;
55+
border: thin solid #ddd; border-radius: .5em;
56+
margin: .5em calc(-0.5em - 1px);
57+
}
58+
[data-algorithm]:not(.heading) > :first-child {
59+
margin-top: 0;
60+
}
61+
[data-algorithm]:not(.heading) > :last-child {
62+
margin-bottom: 0;
63+
}
64+
[data-algorithm] [data-algorithm] {
65+
margin: 1em 0;
66+
}
67+
</style>
68+
5169
<h2 id="intro">
5270
Introduction</h2>
5371

@@ -1212,6 +1230,15 @@ URL Processing Model</h4>
12121230
with [=fetch/processresponseconsumebody=] set to |processResponse|.
12131231
</div>
12141232

1233+
Some legacy implementations preserved the original encoding of URLs
1234+
(as represented in the stylesheet)
1235+
and reproduced that encoding when communicating over the network.
1236+
UAs <em>must not</em> do this;
1237+
when it's necessary to re-encode a URL into bytes
1238+
to communicate over the network,
1239+
the URL must be encoded as UTF-8,
1240+
regardless of the original stylesheet encoding.
1241+
12151242
<h2 id="numeric-types">
12161243
Numeric Data Types</h2>
12171244

0 commit comments

Comments
 (0)