Skip to content

Commit e9d1f24

Browse files
[css-images-4] Described how to interpolate between fr units and lengths or percentages w3c/csswg-drafts@d802a6c
1 parent 25ee137 commit e9d1f24

File tree

1 file changed

+75
-63
lines changed

1 file changed

+75
-63
lines changed

css-images4-ja.html

Lines changed: 75 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188
●●options
189189

190190
spec_title:CSS Images Module Level 4
191-
spec_date:2025-11-02
192-
trans_update:2025-11-04
191+
spec_date:2025-11-06
192+
trans_update:2025-11-08
193193
source_checked:240719
194194
page_state_key:CSS
195195
original_url:https://drafts.csswg.org/css-images-4/
@@ -214,6 +214,7 @@
214214
e:element
215215
a:attr
216216
et:event-type
217+
op:op
217218

218219
●●tag_map
219220
p:code
@@ -232,6 +233,7 @@
232233
I:code
233234
m:code
234235
et:code
236+
op:span
235237
V:var
236238
i:i
237239
em:em
@@ -473,6 +475,7 @@
473475
角括弧付き範囲~記法:~CSSVAL#css-bracketed-range-notation
474476
関数-記法:~CSSVAL#functional-notation
475477
~style資源を~fetchする:~CSSVAL#fetch-a-style-resource
478+
算出d長さ:~CSSVAL#computed-length
476479

477480
混合-百分率たちを正規化する:~CSSVAL5#normalize-mix-percentages
478481

@@ -626,6 +629,7 @@
626629
確率的:stochastic:~
627630
収束-:converge:~
628631
残余:leftover:~
632+
公式:formula:~
629633

630634
利用元~単位:user coordinate
631635
変換
@@ -634,6 +638,9 @@
634638
占める:share
635639
N-way Porter-Duff
636640
Wikipedia
641+
%百分率~総和:sum-of-percents
642+
%固定的~長さ~総和:sum-of-fixed
643+
%~flex総和:sum-of-flexes
637644

638645
●gradient
639646
gradient:
@@ -875,6 +882,7 @@
875882
左横書き:LTR:~
876883
右横書き:RTL:~
877884
双向性:bidi::~
885+
固定的:fixed:~
878886

879887

880888
●構文
@@ -5406,91 +5414,95 @@ <h3 title="Interpolating &lt;gradient&gt;">7.3. `gradient$t の補間-法</h3>
54065414
<h3 title="Interpolating stripes()">7.4. `stripes$f の補間-法</h3>
54075415

54085416
<p>
5409-
2 個の `stripes$f
5417+
`stripes$f どうしは
54105418
~gradientと類似に補間でき,
54115419
一方の画像から他方へ滑らかな~animationを許容する。
54125420
ただし、
5413-
`stripes$f どうしの補間が許容されるためには,次に挙げる少数の制約がある:
5414-
5415-
Similar to gradients, two stripes() can be interpolated, allowing for smooth animations from one image to another. There are only a few restrictions on what stripes() are allowed to be interpolated:
5416-
</p>
5417-
<ul>
5418-
<li>
5421+
補間が許容されるためには,
54195422
引数【!Both the starting and ending image】を成す `color-stripe$t の個数は互いに同じでなければナラナイ。
5423+
この拘束が満たされない場合、
5424+
汎用な画像~用の `cross-fade$f を利用して補間するモノトスル。
5425+
満たされる場合、
5426+
以下に述べるとおりに補間するモノトスル:
54205427
5421-
Both the starting and ending image must have the same number of &lt;color-stripe&gt;s.
5422-
</li>
5423-
<li>
5424-
対応する `color-stripe$t を成す太さの型は互いに同じ
5425-
— すなわち,[
5426-
どちらも `length-percentage$t / どちらも `flex$t
5427-
] —
5428-
でなければナラナイ。
5429-
5430-
Each pair of interpolated thicknesses must be of the same type, i.e. both must either be of type &lt;length-percentage&gt;, or &lt;flex&gt;.
5431-
</li>
5432-
</ul>
5428+
Similar to gradients, two stripes() can be interpolated, allowing for smooth animations from one image to another. There is only one restriction on what stripes() are allowed to be interpolated.\
5429+
Both the starting and ending image must have the same number of &lt;color-stripe&gt;s.\
5430+
If the two images satisfy this constraint, they must be interpolated as described below.\
5431+
If they fail the constraint, they must be interpolated using cross-fade() as for generic images.
5432+
</p>
54335433

5434-
<p>
5435-
両~画像が:
5436-
5437-
</p>
54385434
<ul>
54395435
<li>
5440-
上の拘束をいずれも満たす場合、
5441-
以下に述べるとおりに補間するモノトスル。
5436+
各~縞( `color-stripe$t )【!component and stripe】どうし
5437+
— [
5438+
開始~画像, 終了~画像
5439+
]内の同じ~indexにある縞どうし —
5440+
を独立に補間する。
54425441
5443-
If the two images satisfy both constraints, they must be interpolated as described below.\
5444-
</li>
5445-
<li>
5446-
1 個目の拘束しか満たさない場合、
5447-
50% の所で一足飛びに遷移するモノトスル
5448-
(将来の仕様により他が指定されない限り)。
5442+
Interpolate each component and stripe of the images independently.
54495443
5450-
If they fail the second one only, they must be abruptly transitioned at 50% (unless otherwise specified by a future specification).\
5444+
To interpolate a stripe, first match each stripe in the start image to the corresponding stripe at the same index in the end image.\
54515445
</li>
54525446
<li>
5453-
他の場合、
5454-
汎用な画像~用の `cross-fade$f を利用して補間するモノトスル
5455-
5456-
If they fail the first constraint, they must be interpolated using cross-fade() as for generic images.
5457-
</li>
5458-
</ul>
5459-
5460-
<p class="note">注記:
5461-
50% の所で一足飛びに遷移させるのは、
5462-
内容が~cross-fadeに依拠しないようにして,将来に[
5463-
この事例~用に,もっと賢い補間~規則を追加できるようにする
5464-
]ためである。
5447+
<p>
5448+
縞どうしを補間するときは、
5449+
その[
5450+
太さ, 色
5451+
]を独立に補間する。
54655452
5466-
Note: The abrupt transition at 50% is so that content will not rely on cross-fading, and smarter interpolation rules can be added for this case in the future.
5453+
Then, for each pair of stripes, interpolate the thickness and color independently.\
54675454
</p>
54685455

5469-
<ol>
5456+
<p class="trans-note">
5457+
5458+
太さどうしは`百分率~値と次元~値の組合nの補間@~CSSVAL#combine-mixed$/
5459+
色どうしは`色の補間-法@~CSSCOLOR#interpolation$
5460+
]に従うであろう。
5461+
</p>
5462+
</li>
54705463
<li>
5471-
画像を成す各~縞( `color-stripe$t )【!component and stripe】は、
5472-
独立に補間する。
5464+
<p>
5465+
太さを成す `flex$t 値 %~flex値 は、
5466+
次の公式を利用した結果の `length-percentage$t として補間する
5467+
5468+
`max^op( 0, 100% ~MINUS %百分率~総和 ~MINUS %固定的~長さ~総和 ) ~MUL %~flex値 ~DIV `max^op( 1, %~flex総和 )
54735469
5474-
Interpolate each component and stripe of the images independently.
5470+
&lt;flex&gt; values are interpolated as &lt;length-percentage&gt;s using the following formula:
5471+
• max(0, 100% - sum-of-percents - sum-of-fixed) * flex value / max(1, sum-of-flexes)
5472+
</p>
5473+
5474+
<div>
5475+
<p>
5476+
ここで
5477+
(以下、
5478+
“当の関数” は, %~flex値 を包含している `stripes$f 関数を指す):
5479+
</p>
5480+
<ul>
5481+
<li>
5482+
%百分率~総和 は、
5483+
当の関数~内の `percentage$t すべての総和
54755484
</li>
5476-
<li>
5485+
<li>
54775486
<p>
5478-
縞を補間するときは、[
5479-
開始~画像, 終了~画像
5480-
]内の同じ~indexにある各~縞~pairに対し,その[
5481-
太さ, 色
5482-
]を独立に補間する。
5487+
%固定的~長さ~総和 は、
5488+
当の関数~内の固定的な `length$t すべての総和
54835489
</p>
54845490

54855491
<p class="trans-note">
5486-
太さは `length^t 値の`補間-法@~CSSVAL#combine-dimensions$,
5487-
色は`色の補間-法@~CSSCOLOR#interpolation$
5488-
に従うことになろう。
5492+
“固定的( `fixed^en )な `length^t” とは、
5493+
絶対~化された `length^t (`算出d長さ$)を意味すると思われる。
54895494
</p>
5490-
5491-
To interpolate a stripe, first match each stripe in the start image to the corresponding stripe at the same index in the end image. Then, for each pair of stripes, interpolate the thickness and color independently.
5495+
</li>
5496+
<li>
5497+
%~flex総和 は、
5498+
当の関数~内の `flex$t 値~すべての総和
54925499
</li>
5493-
</ol>
5500+
</ul>
5501+
5502+
where sum-of-percents is the sum of all &lt;percentage&gt;s in the stripes() function, sum-of-fixed is the sum of all fixed &lt;length&gt;s in the function, and sum-of-flexes is the sum of all &lt;flex&gt; values.
5503+
</div>
5504+
</li>
5505+
</ul>
54945506

54955507
</section>
54965508
</section>

0 commit comments

Comments
 (0)