Content-Length: 385778 | pFad | http://github.com/w3c/csswg-drafts/commit/dce5c9df4fdc6b1b94acbb8ceb09895c62924c18

75 [css-values-4] Add genericized definition for coordinating list prope… · w3c/csswg-drafts@dce5c9d · GitHub
Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dce5c9d

Browse files
committedOct 10, 2022
[css-values-4] Add genericized definition for coordinating list properties. #7164
1 parent 66178f3 commit dce5c9d

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed
 

‎css-values-4/Overview.bs

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4725,9 +4725,51 @@ Appendix A: Recommended Minimum Ranges and Precision of Computed Values</h2>
47254725
</span>
47264726
-->
47274727

4728+
<h2 id="linked-properties">
4729+
Appendix A: Coordinating List-Valued Properties</h2>
4730+
4731+
Some list-valued properties have coordinated effects:
4732+
each item in their value list applies to a distinct effect,
4733+
and corresponding entries in each property's list
4734+
all refer to the same effect.
4735+
Often the coordinating values can also be specified together
4736+
as a single entry in a list-valued [=shorthand property=].
4737+
4738+
A typical example is the list-valued 'background-*' properties,
4739+
which can specify <a href="https://www.w3.org/TR/css-backgrounds-3/#layering">multiple background image layers</a>.
4740+
For each property controlling how the image is sized, tiled, placed, etc.,
4741+
the <var>N</var>th item in its list describes some effect that applies
4742+
to the <var>N</var>th background image.
4743+
4744+
A <dfn export lt="coordinating list property | coordinating list property group">coordinating list property group</dfn> creates
4745+
a <dfn export>coordinated value list</dfn>,
4746+
which has, for each entry,
4747+
a value from each property in the group;
4748+
these are used together to define a single effect,
4749+
such as a background image layer
4750+
or an animation.
4751+
The [=coordinated value list=] is assembled as follows:
4752+
4753+
* The length of the [=coordinated value list=] is determined by
4754+
the number of items specified in one particular [=coordinating list property=],
4755+
the <dfn export>coordinating list base property</dfn>.
4756+
(In the case of backgrounds, this is the 'background-image' property.)
4757+
4758+
* The <var>N</var>th value of the [=coordinated value list=] is constructed
4759+
by collecting the <var>N</var>th [=use value=] of each [=coordinating list property=]
4760+
4761+
* If a [=coordinating list property=] has too many values specified,
4762+
excess values at the end of its list are not [=used value|used=].
4763+
4764+
* If a [=coordinating list property=] has too few values specified,
4765+
its value list is repeated to add more [=used values=].
4766+
4767+
* The [=computed values=] of the [=coordinating list properties=]
4768+
are not affected by such truncation or repetition.
4769+
47284770

47294771
<h2 id='iana'>
4730-
Appendix A: IANA Considerations</h2>
4772+
Appendix B: IANA Considerations</h2>
47314773

47324774
<h3 id='about-invalid'>
47334775
Registration for the <code>about:invalid</code> URL scheme</h3>
@@ -4756,7 +4798,7 @@ Registration for the <code>about:invalid</code> URL scheme</h3>
47564798
</table>
47574799

47584800
<h2 id="deprecated-quirky-length">
4759-
Appendix B: Quirky Lengths</h2>
4801+
Appendix C: Quirky Lengths</h2>
47604802

47614803
When CSS is being parsed in [=quirks mode=],
47624804
<dfn type><<quirky-length>></dfn> is a type of <<length>>
@@ -4965,6 +5007,8 @@ Additions Since Level 3</h3>
49655007
<li>A non-integer in a calc() automatically rounds to the nearest integer
49665008
when used where an <<integer>> is required.
49675009
<li>Defined [[#calc-serialize|serialization]] of [=math functions=].
5010+
<li>Added a genericized definition of [=coordinating list property groups=],
5011+
to make it easier to reference the coordinating behavior of the 'background' properties.
49685012
</ul>
49695013

49705014
<h2 class="no-num" id="sec-pri">

0 commit comments

Comments
 (0)
Failed to load comments.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/w3c/csswg-drafts/commit/dce5c9df4fdc6b1b94acbb8ceb09895c62924c18

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy