Skip to content

Commit 442ca50

Browse files
committed
Merge branch 'main' of https://github.com/w3c/csswg-drafts into main
2 parents d0337ce + d1828fe commit 442ca50

File tree

122 files changed

+13395
-8963
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+13395
-8963
lines changed

bin/ua-capitalization.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
# This script automates a large part of making sure "user agent" is written in lower case.
3+
# Doing so is backed by the CSS-WG resolution recorded at https://logs.csswg.org/irc.w3.org/css/2021-04-08/#e1402191
4+
# After this script has run,
5+
# there can remain a few instances of the term being used.
6+
# Those will have to be fixed manually.
7+
# Run frequently to avoid cruft piling up.
8+
for FILE in "$@"
9+
do
10+
sed -i -e "s/\([a-zA-Z,;]\) User Agent/\1 user agent/"\
11+
-e "s/Note: User Agent/Note: User agent/"\
12+
-e "s/\. User Agent/. User agent/" $FILE
13+
done
14+
echo "Remaining instances of 'User Agent':"
15+
grep -R "User Agent" $@

css-2017/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ CSS Profiles</h3>
431431

432432
In the past, the Working Group published a few Profiles,
433433
which were meant to define the minimal subset of CSS
434-
that various classes of User Agents were expected to support.
434+
that various classes of user agents were expected to support.
435435

436436
This effort has been discontinued,
437437
as the Working Group was not finding it effective or useful,

css-2018/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ CSS Profiles</h3>
459459

460460
In the past, the Working Group published a few Profiles,
461461
which were meant to define the minimal subset of CSS
462-
that various classes of User Agents were expected to support.
462+
that various classes of user agents were expected to support.
463463

464464
This effort has been discontinued,
465465
as the Working Group was not finding it effective or useful,

css-2020/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ CSS Profiles</h3>
525525

526526
In the past, the Working Group published a few Profiles,
527527
which were meant to define the minimal subset of CSS
528-
that various classes of User Agents were expected to support.
528+
that various classes of user agents were expected to support.
529529

530530
This effort has been discontinued,
531531
as the Working Group was not finding it effective or useful,

css-align-3/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,9 @@ Overflow Alignment: the ''safe'' and ''unsafe'' keywords and scroll safety limit
806806
</div>
807807
</div>
808808
<figcaption>
809-
The items in the figure on the right all strictly centered,
809+
The items in the figure on the left are all strictly centered,
810810
even if the one that is too long to fit overflows on both sides,
811-
while those in the figure on the left are centered unless they overflow,
811+
while those in the figure on the right are centered unless they overflow,
812812
in which case all the overflow goes off the end edge.
813813
If the container was placed
814814
against the left edge of the page,

css-backgrounds-3/Overview.bs

+19-10
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ Value Definitions</h3>
9797
using the <a href="https://www.w3.org/TR/css-values-3/#value-defs">value definition syntax</a> from [[!CSS-VALUES-3]].
9898
Value types not defined in this specification are defined in CSS Values &amp; Units [[!CSS-VALUES-3]].
9999
Combination with other CSS modules may expand the definitions of these value types.
100+
For example, combining with <a href="https://www.w3.org/TR/css-images/">CSS Images</a>
101+
allows for using CSS gradients as 'background-image' or 'border-image' values.
102+
[[CSS-IMAGES-3]]
100103

101104
In addition to the property-specific values listed in their definitions,
102105
all properties defined in this specification
@@ -287,9 +290,10 @@ controls for image display.
287290
<div class="example">
288291
<p>Some examples specifying background images:</p>
289292
<pre>
290-
body { background-image: url("marble.svg") }
293+
html { background-image: url("marble.svg") }
291294
p { background-image: none }
292295
div { background-image: url(tl.png), url(tr.png) }
296+
main { background-image: radial-gradient(at bottom right, transparent, white); }
293297
</pre>
294298
</div>
295299

@@ -1260,14 +1264,9 @@ in order to allow styling of the canvas
12601264
CSS propagates the background of the root element
12611265
(or, in the case of HTML, the &lt;body&gt; element)
12621266
as described below.
1263-
However, if no boxes are generated for the element whose background
1264-
would be used for the canvas
1265-
(for example, if the root element has ''display: none''),
1266-
then the canvas background is transparent.
1267-
1268-
<p class=note>Note that an element might be invisible, but still generate boxes.
1269-
For example, if the element has ''visibility: hidden'' but not ''display: none'',
1270-
boxes <em>are</em> generated for it and its background <em>is</em> used for the canvas.
1267+
However, the element whose background would be used for the canvas
1268+
is ''display: none'',
1269+
then the [=canvas background=] is transparent.
12711270

12721271
<p>If the [=canvas background=] is not opaque,
12731272
the <dfn export>canvas surface</dfn> below it shows through.
@@ -2977,7 +2976,7 @@ module.
29772976

29782977
<dl>
29792978
<dt><dfn>UA</dfn>
2980-
<dt><dfn id="user-agent">User Agent</dfn>
2979+
<dt><dfn id="user-agent">user agent</dfn>
29812980
<dd>
29822981
<p>A program that reads and/or writes CSS style sheets on behalf of a
29832982
user in either or both of these categories: programs whose purpose is
@@ -3040,6 +3039,16 @@ The lists below describe which features from this specification are in each leve
30403039
<h2 id="changes">
30413040
Changes</h2>
30423041

3042+
<h3 id="changes-2020-12">
3043+
Changes since the 22 December 2020 Candidate Recommendation Snapshot</h3>
3044+
3045+
<ul>
3046+
<li>Clarified that the rule about not propagating backgrounds from the root
3047+
when it doesn't generate boxes only applies to ''display: none'',
3048+
not ''display: contents''.
3049+
(<a href="https://github.com/w3c/csswg-drafts/issues/3779">Issue 3779</a>)
3050+
</ul>
3051+
30433052
<h3 id="changes-2017-10">
30443053
Changes since the 17 October 2017 Candidate Recommendation</h3>
30453054

css-break-3/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Breaks Between Boxes: the 'break-before' and 'break-after' properties</h3>
273273

274274
<p>
275275
Values for 'break-before' and 'break-after' are defined in the sub-sections below.
276-
User Agents must apply these properties to boxes in the normal flow of the <a>fragmentation root</a>.
276+
User agents must apply these properties to boxes in the normal flow of the <a>fragmentation root</a>.
277277
User agents should also apply these properties to floated boxes
278278
whose containing block is in the normal flow of the root fragmented element.
279279
User agents may also apply these properties to other boxes.

css-break-4/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Breaks Between Boxes: the 'break-before' and 'break-after' properties</h3>
265265
indicate that content should be kept together.
266266

267267
Values for 'break-before' and 'break-after' are defined in the sub-sections below.
268-
User Agents must apply these properties to boxes in the normal flow of the <a>fragmentation root</a>.
268+
User agents must apply these properties to boxes in the normal flow of the <a>fragmentation root</a>.
269269
User agents should also apply these properties to floated boxes
270270
whose containing block is in the normal flow of the root fragmented element.
271271
User agents may also apply these properties to other boxes.

0 commit comments

Comments
 (0)