Skip to content

Commit b3b73b4

Browse files
Merge branch 'main' into continue-collapse
2 parents e05e6f0 + bb2b151 commit b3b73b4

File tree

32 files changed

+3526
-1232
lines changed

32 files changed

+3526
-1232
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ for a given positioned element.
197197
which sets the implicit anchor element.
198198

199199
[=Implicit anchor elements=] can be referenced
200-
with the ''implicit'' keyword,
201-
rather than referring to some 'anchor-name' value.
200+
with the ''position-anchor/auto'' keyword in 'position-anchor',
201+
or by omitting the anchor reference in [=anchor functions=].
202202

203203
[=Pseudo-elements=]
204204
have the same [=implicit anchor element=]
@@ -324,7 +324,7 @@ given an <dfn>anchor specifier</dfn>,
324324
which is either a <<dashed-ident>>
325325
(and a [=tree-scoped reference=])
326326
that should match an 'anchor-name' value elsewhere on the page,
327-
or the keyword ''implicit'',
327+
or the keyword ''position-anchor/auto'',
328328
or nothing (a missing specifier).
329329

330330
Note: The general rule captured by these conditions
@@ -351,7 +351,7 @@ in anchor positioning.
351351
for |query el|
352352
given the |query el|'s [=default anchor specifier=].
353353

354-
2. If |anchor spec| is ''implicit'':
354+
2. If |anchor spec| is ''position-anchor/auto'':
355355
1. If the Popover API defines an [=implicit anchor element=] for |query el|
356356
which is an [=acceptable anchor element=] for |query el|,
357357
return that element.
@@ -481,7 +481,7 @@ is the element's <dfn>default anchor element</dfn>.
481481

482482
Its values are identical to the <<anchor-element>> term
483483
in ''anchor()'' and ''anchor-size()'',
484-
except that the ''position-anchor/auto'' value
484+
except that the <dfn value for=position-anchor>auto</dfn> value
485485
is equivalent to omitting the <<anchor-element>> in ''anchor()''
486486
(referring to the [=implicit anchor element=], if one exists).
487487

@@ -827,7 +827,7 @@ The ''anchor()'' function has three arguments:
827827
This name is a [=tree-scoped reference=].
828828

829829
: omitted
830-
:: Selects the [=implicit anchor element=]
830+
:: Selects the [=default anchor element=]
831831
defined for the element,
832832
if possible.
833833
</dl>
@@ -916,19 +916,19 @@ as if by an additional ''translate()'' transform.
916916

917917
<div class=example>
918918
For example,
919-
in ''.bar { top: anchor(--foo top); }'',
919+
in ''.bar { inset-block-start: anchor(--foo block-start); }'',
920920
the ''anchor()'' will resolve to the length
921-
that'll line up the <code>.bar</code> element's top edge
922-
with the ''--foo'' anchor's top edge.
921+
that'll line up the <code>.bar</code> element's block-start edge
922+
with the ''--foo'' anchor's block-start edge.
923923

924924
On the other hand,
925-
in ''.bar { bottom: anchor(--foo top); }'',
925+
in ''.bar { inset-block-end: anchor(--foo block-start); }'',
926926
it will instead resolve to the length
927-
that'll line up the <code>.bar</code> element's <em>bottom</em> edge
928-
with the ''--foo'' anchor's top edge.
927+
that'll line up the <code>.bar</code> element's <em>block-end</em> edge
928+
with the ''--foo'' anchor's block-start edge.
929929

930-
Since 'top' and 'bottom' values specify insets from different edges
931-
(the top and bottom of the element's [=containing block=],
930+
Since 'inset-block-start' and 'inset-block-end' values specify insets from different edges
931+
(the block-start and block-end of the element's [=containing block=],
932932
respectively),
933933
the same ''anchor()'' will usually resolve to different lengths in each.
934934
</div>
@@ -1716,8 +1716,7 @@ the [=position options list=] will be tried.
17161716
.list {
17171717
position: fixed;
17181718
position-anchor: --foo;
1719-
top: anchor(bottom);
1720-
left: anchor(left);
1719+
position-area: block-end span-inline-end;
17211720
align-self: start;
17221721
position-try-fallbacks: --bottom-scrollable, flip-block, --top-scrollable;
17231722
position-try-order: most-height;
@@ -1726,18 +1725,15 @@ the [=position options list=] will be tried.
17261725
align-self: stretch;
17271726
}
17281727
@position-try --top-scrollable {
1729-
top: 0;
1730-
bottom: anchor(top);
1728+
position-area: block-start span-inline-end;
17311729
align-self: stretch;
17321730
}
17331731
</pre>
17341732

17351733
The ''flip-block'' auto-generated option and the ''--top-scrollable'' option
17361734
will always find the same available height,
1737-
since both of them stretch vertically from ''top: 0''
1738-
(the top edge of the viewport)
1739-
to ''bottom: anchor(top)''
1740-
(the top of the anchor),
1735+
since both of them stretch vertically from the top edge of the containing block
1736+
to the top of the anchor,
17411737
so they'll retain their specified order.
17421738
This causes the element to first try to align against the anchor
17431739
at its natural height

css-backgrounds-3/Overview.bs

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Backgrounds</h2>
131131
Layering Multiple Background Images</h3>
132132

133133
The background of a box can have multiple
134-
<dfn lt="background image layer" local-lt="layer">background image layers</dfn>.
134+
<dfn export lt="background image layer" local-lt="layer">background image layers</dfn>.
135135
The number of layers is determined by
136136
the number of comma-separated values in the 'background-image' property.
137137
Note that a value of ''background-image/none'' still creates a layer.
@@ -268,7 +268,7 @@ Base Color: the 'background-color' property</h3>
268268
color-behind-images.htm
269269
</wpt>
270270

271-
This property sets the <dfn id="background-color-layer">background color</dfn> of a box.
271+
This property sets the <dfn export id="background-color-layer">background color</dfn> of a box.
272272
This color is drawn behind any background images.
273273

274274
<div class="example">
@@ -326,7 +326,7 @@ Image Sources: the 'background-image' property</h3>
326326
parsing/background-image-valid.html
327327
</wpt>
328328

329-
This property specifies the <dfn lt="background image" local-lt="image" id="background-images">background image(s)</dfn> of an element.
329+
This property specifies the <dfn export lt="background image" local-lt="image" id="background-images">background image(s)</dfn> of an element.
330330
Images are drawn with the first specified one on top (closest to the user)
331331
and each subsequent image behind the previous one.
332332
The property's value is given as a comma-separated list
@@ -500,11 +500,10 @@ Tiling Images: the 'background-repeat' property</h3>
500500
<dt><dfn>round</dfn>
501501
<dd>
502502
The [=image=] is repeated as often as will fit within the
503-
<span class=index>background positioning area.</span> If it doesn't
503+
[=background positioning area=]. If it doesn't
504504
fit a whole number of times, it is rescaled so that it does.
505-
See the formula under 'background-size'. If the <span
506-
class=index>background
507-
painting area</span> is larger than the background positioning area, then
505+
See the formula under 'background-size'.
506+
If the [=background painting area=] is larger than the background positioning area, then
508507
the pattern repeats to fill the background painting area.
509508

510509
<dt><dfn>no-repeat</dfn>
@@ -712,7 +711,7 @@ Affixing Images: the 'background-attachment' property</h3>
712711
Initial: 0% 0%
713712
Applies to: all elements
714713
Inherited: no
715-
Percentages: refer to size of <span class=index>background positioning area</span>
714+
Percentages: refer to size of [=background positioning area=]
716715
<em>minus</em> size of background image; see text
717716
Computed value: list,
718717
each item a pair of offsets (horizontal and vertical) from the top left origin
@@ -970,7 +969,7 @@ Painting Area: the 'background-clip' property</h3>
970969
parsing/background-clip-valid.html
971970
</wpt>
972971

973-
Determines the <dfn>background painting area</dfn>,
972+
Determines the <dfn export>background painting area</dfn>,
974973
which determines the area within which the background is painted.
975974
Values have the following meanings:
976975

@@ -1052,7 +1051,7 @@ Positioning Area: the 'background-origin' property</h3>
10521051
</wpt>
10531052

10541053

1055-
This property determines the <dfn>background positioning area</dfn>:
1054+
This property determines the <dfn export>background positioning area</dfn>:
10561055
the area within which any background images are positioned.
10571056
For elements rendered as multiple [=box fragments=]
10581057
(e.g., inline boxes on several lines, boxes on several pages),
@@ -2771,7 +2770,7 @@ Image Source: the 'border-image-source' property</h3>
27712770
If the value is ''border-image-source/none'' or if the image cannot be displayed
27722771
(or the property doesn't apply), the border styles will be used;
27732772
otherwise the element's 'border-style' borders are not drawn
2774-
and this <dfn id="border-image-dfn">border image</dfn> is drawn
2773+
and this <dfn export id="border-image-dfn">border image</dfn> is drawn
27752774
as described in the sections below.
27762775

27772776
<h3 id="border-image-slice" oldids="the-border-image-slice">
@@ -2906,13 +2905,13 @@ Drawing Areas: the 'border-image-width' property</h3>
29062905
parsing/border-image-width-valid.html
29072906
</wpt>
29082907

2909-
The [=border image=] is drawn inside an area called the <dfn>border image area</dfn>.
2908+
The [=border image=] is drawn inside an area called the <dfn export>border image area</dfn>.
29102909
This is an area whose boundaries by default correspond to the [=border box=],
29112910
see 'border-image-outset'.
29122911

29132912
The four values of 'border-image-width' specify offsets
29142913
that are used to divide the [=border image area=] into nine
2915-
<dfn lt="border image region" local-lt="region">regions</dfn>.
2914+
<dfn export lt="border image region" local-lt="region">regions</dfn>.
29162915
The offsets represent inward distances from
29172916
the top, right, bottom, and left sides of the area, respectively.
29182917

css-backgrounds-4/Overview.bs

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -205,49 +205,48 @@ Tiling Images Shorthand: the 'background-repeat' property</h3>
205205
<h3 id="the-background-position">
206206
Background Positioning: the 'background-position' shorthand property</h3>
207207

208-
<pre class="propdef shorthand">
209-
Name: background-position
210-
Value: <<bg-position>>#
208+
<pre class="propdef">
209+
Name: background-position
210+
Value: <<bg-position>>#
211+
Initial: 0% 0%
212+
Applies to: all elements
213+
Inherited: no
214+
Percentages: refer to size of <span class=index>background positioning area</span>
215+
<em>minus</em> size of background image; see text
216+
Computed value: a list,
217+
each item a pair of offsets (horizontal and vertical) from the top left origin,
218+
each offset given as a computed <<length-percentage>> value
219+
Animation type: repeatable list
211220
</pre>
212221

213-
See [[CSS3BG]] for definition.
214-
215-
<p>Where
216-
<pre class=prod><dfn>&lt;bg-position&gt;</dfn> = [
217-
[ left | center | right | top | bottom | start | end | <<length-percentage>> ]
218-
|
219-
[ left | center | right | x-start | x-end | <<length-percentage>> ]
220-
[ top | center | bottom | y-start | y-end | <<length-percentage>> ]
221-
|
222-
[ center | [ left | right | x-start | x-end ] <<length-percentage>>? ] &amp;&amp;
223-
[ center | [ top | bottom | y-start | y-end ] <<length-percentage>>? ]
224-
|
225-
[ center | [ start | end ] <<length-percentage>>? ]
226-
[ center | [ start | end ] <<length-percentage>>? ] ]</pre>
227-
228-
Values have the following meanings:
229-
<dl>
230-
<dt>One value
231-
<dd>
232-
If only one value is given,
233-
and that value is ''background-position/start'' or ''background-position/end'',
234-
then the keyword is duplicated;
235-
otherwise the second keyword defaults to ''background-position/center''.
236-
The resulting value is treated as a two-component value.
222+
If [=background images=] have been specified,
223+
this property specifies their initial position
224+
(after any <a href="#background-size">resizing</a>)
225+
within their corresponding [=background positioning area=].
237226

238-
<dt>More than one value
239-
<dd>
240-
If the value contains a ''background-position/start'' or ''background-position/end'' keyword,
241-
then the shorthand sets
242-
'background-position-inline' and 'background-position-block' to the specified values.
243-
Otherwise
244-
the shorthand sets
245-
'background-position-x' and 'background-position-y' to the specified values.
246-
247-
Issue: Specify the value assignment in more detail. Should expand just like Level 3.
248-
</dl>
227+
This property is a [=shorthand property=] that sets
228+
'background-position-x', 'background-position-y', 'background-position-block', and 'background-position-inine'
229+
in a single declaration.
230+
231+
Its value is given as a comma-separated list
232+
of <dfn><<bg-position>></dfn> values, which are interpreted as <<position>> values
233+
with the resized [=background image=] as the [=alignment subject=]
234+
and the [=background positioning area=] as the [=alignment container=].
235+
236+
<pre class=prod>
237+
<<bg-position>> = <<position>> | <<position-three>>
238+
<dfn><<position-three>></dfn> = [
239+
[ left | center | right ] && [ [ top | bottom ] <<length-percentage>> ]
240+
|
241+
[ [ left | right ] <<length-percentage>> ] && [ top | center | bottom ]
242+
]
243+
</pre>
244+
245+
The omitted <<length-percentage>> in the 'background-position'-specific
246+
<<position-three>> syntax variant
247+
defaults to ''0%''.
249248

250-
Issue: Specify what happens to set of properties that are not set. Maybe they're just not set?
249+
Issue(9690): Specify how the [=longhand properties=] are set.
251250

252251
<h4 id="background-position-longhands">
253252
Background Positioning Longhands: the 'background-position-x', 'background-position-y', 'background-position-inline', and 'background-position-block' properties</h4>

css-cascade-6/Overview.bs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ Informative Classes: ex
2020
</pre>
2121

2222
<pre class=link-defaults>
23-
spec:dom; type:dfn; text:shadow tree
24-
spec:dom; type:dfn; for:tree; text:root
23+
spec:dom; type:dfn;
24+
text:shadow tree
25+
for:tree; text:root
26+
text:shadow root; for:/
2527
spec:css-color-4; type:property; text:color
2628
spec:css-values-3; type: value; text:ex
2729
spec:css-conditional-3; type:at-rule; text:@media
@@ -303,7 +305,9 @@ Effects of ''@scope''</h4>
303305
are [=scoped style rules=].
304306

305307
* The '':scope'' selector is defined to match
306-
the ''@scope'' rule’s [=scoping root=].
308+
the ''@scope'' rule’s [=scoping root=],
309+
including the [=featureless=] [=shadow host=]
310+
when that host is the [=scoping root=].
307311
The ''&'' selector is defined to represent
308312
the selector representing the [=scoping root=]
309313
(the <<scope-start>> selector),
@@ -619,6 +623,8 @@ Scope Nesting</h4>
619623
only the innermost ''@scope'' matters
620624
for determining [=scope proximity=] of [[#scope-scope|nested @scope rules]].
621625

626+
Issue(10795): Should the scope proximity calculation be impacted by nesting scopes?
627+
622628
<div class=example>
623629
When nesting ''@scope'' rules inside other ''@scope'' rules,
624630
or inside other selectors,
@@ -719,21 +725,27 @@ Changes</h2>
719725

720726
This appendix is <em>informative</em>.
721727

722-
<h3 id="changes-2022-08">
728+
<h3 id="changes-since-2023-03">
723729
Changes since the 21 March 2023 Working Draft</h3>
724730

725731
Significant changes since the
726732
<a href="https://www.w3.org/TR/2023/WD-css-cascade-6-20230321/">21 March 2023 Working Draft</a> include:
727733

734+
* The '':scope'' selector can match the [=featureless=] [=shadow host=] when
735+
that host is the [=scoping root=] element.
736+
(<a href="https://github.com/w3c/csswg-drafts/issues/9025">Issue 9025</a>)
737+
728738
* ''<<scope-start>>'' and ''<<scope-end>>'' selectors are unforgiving.
729739
(<a href="https://github.com/w3c/csswg-drafts/issues/10042">Issue 10042</a>)
730740

731741
* A ''@scope'' rule without ''<<scope-start>>'' scopes to the
732-
[==shadow host==] instead of the [==shadow root==].
742+
[=shadow host=] instead of the [=shadow root=].
733743
(<a href="https://github.com/w3c/csswg-drafts/issues/9178">Issue 9178</a>)
734744

735745
* Clarified that [=scope proximity=] is a single measurement of the steps
736-
between a single [=scoping root=] and [=scoped style rule=] [=subject=].
746+
between a single [=scoping root=] and [=scoped style rule=] [=subject=]
747+
(<a href="https://github.com/w3c/csswg-drafts/issues/10795">Issue 10795</a>
748+
has been opened to discuss this futher).
737749

738750
* Removed strong scope proximity.
739751
(<a href="https://github.com/w3c/csswg-drafts/issues/6790">Issue 6790</a>)

0 commit comments

Comments
 (0)