@@ -192,43 +192,43 @@ <h3>Serializing Media Queries</h3>
192192 < ol >
193193 < li > < p > Let < var title =""> s</ var > be the empty string.</ p > </ li >
194194
195- < li > < p > If the media query is negated append the literal string
196- "< code > not</ code > ", followed by a U+0020 SPACE character, to
197- < var title =""> s</ var > .</ p > </ li >
195+ < li > < p > If the media query is negated append "< code > not</ code > ", followed
196+ by a space (U+0020), to < var title =""> s</ var > .</ p > </ li >
198197
199- < li > < p > Let < var title =""> type</ var > be the media query,
198+ < li > < p > Let < var title =""> type</ var > be the media type of the media query,
199+ < span title ="escape as identifier "> escaped</ span > and
200200 < span > converted to ASCII lowercase</ span > .</ p > </ li >
201201
202202 < li > < p > If the media query does not contain media features append
203203 < var title =""> type</ var > , to < var title =""> s</ var > ,
204204 then return < var title =""> s</ var > and terminate this algorithm.</ p > </ li >
205205
206206 < li > < p > If < var title =""> type</ var > is not "< code > all</ code > " or if the
207- media query is negated append < var title =""> type</ var > , followed by
208- a U+0020 SPACE character , followed by "< code > and</ code > ", followed by a
209- U+0020 SPACE character , to < var title =""> s</ var > .</ p > </ li >
207+ media query is negated append < var title =""> type</ var > , followed by a
208+ space ( U+0020) , followed by "< code > and</ code > ", followed by a space
209+ ( U+0020) , to < var title =""> s</ var > .</ p > </ li >
210210
211211 < li > < p > Sort the media features in lexicographical order.</ p > </ li >
212212
213213 < li >
214214 < p > Then, for each media feature:</ p >
215215
216216 < ol >
217- < li > Append a U+0028 LEFT PARENTHESIS character , followed by the media
218- feature name, < span > converted to ASCII lowercase</ span > , to
217+ < li > Append a " < code > ( </ code > " ( U+0028) , followed by the media feature
218+ name, < span > converted to ASCII lowercase</ span > , to
219219 < var title =""> s</ var > .</ p > </ li >
220220
221- < li > < p > If a value is given append a U+003A COLON (:)
222- character, followed by a U+0020 SPACE character , followed by the
221+ < li > < p > If a value is given append a " < code > : </ code > " ( U+003A), followed
222+ by a space ( U+0020) , followed by the
223223 < span title ="serialize a media feature value "> serialized media feature value</ span > ,
224224 to < var title =""> s</ var > .</ p >
225225
226- < li > < p > Append a U+0029 RIGHT PARENTHESIS character to
226+ < li > < p > Append a " < code > ) </ code > " ( U+0029) to
227227 < var title =""> s</ var > .</ p > </ li >
228228
229- < li > < p > If this is not the last media feature append a U+0020 SPACE
230- character, followed by the literal string "< code > and</ code > ", followed
231- by a U+0020 SPACE character, to < var title =""> s</ var > .</ p >
229+ < li > < p > If this is not the last media feature append a space ( U+0020),
230+ followed by "< code > and</ code > ", followed by a space (U+0020), to
231+ < var title =""> s</ var > .</ p > </ li >
232232 </ ol >
233233 </ li >
234234
@@ -270,8 +270,9 @@ <h3>Serializing Media Queries</h3>
270270 < span title ="serialize a media query "> serializing</ span > the media
271271 query to < var title =""> s</ var > .</ p > </ li >
272272
273- < li > < p > If this is not the last media query append a "< code > ,</ code > "
274- (U+002C), followed by a space (U+0020) to < var title =""> s</ var > .</ p > </ li >
273+ < li > < p > If this is not the last media query in the list append a
274+ "< code > ,</ code > " (U+002C), followed by a space (U+0020) to
275+ < var title =""> s</ var > .</ p > </ li >
275276 </ ol >
276277 </ li >
277278
0 commit comments