Skip to content

Commit fa8de57

Browse files
[css-lists-3] Update algorithm for initial counter value in reversed list w3c/csswg-drafts@a709d01
1 parent a524cd4 commit fa8de57

1 file changed

Lines changed: 23 additions & 15 deletions

File tree

css-lists-ja.html

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@
390390
●●options
391391

392392
spec_title:CSS Lists and Counters Module Level 3
393-
spec_date:2025-12-13
394-
trans_update:2024-01-26
393+
spec_date:2026-03-03
394+
trans_update:2026-03-06
395395
source_checked:201013
396396
page_state_key:CSS
397397
original_url:https://drafts.csswg.org/css-lists-3/
@@ -401,7 +401,7 @@
401401
ref_id_lowercase:true
402402
site_nav:css-gnerated,css
403403
conformance:css
404-
copyright:2025,permissive
404+
copyright:2026,permissive
405405
trans_1st_pub:2019-04-26
406406

407407

@@ -737,8 +737,8 @@
737737
~list~item:`list-item^v
738738
%~counter集合:counters
739739
%N:num
740-
-:first
741-
-:incrementNegated
740+
%最後の増分:lastNonZeroIncrementNegated
741+
%増分:incrementNegated
742742

743743
●layout
744744
浮動体:float::~
@@ -989,15 +989,15 @@
989989
[CSS-COLOR-3]
990990
Tantek Çelik; Chris Lilley; David Baron. <CSS Color Module Level 3>. URL: https://drafts.csswg.org/css-color-3/
991991
[CSS-COLOR-4]
992-
Chris Lilley; Tab Atkins Jr.; Lea Verou. <CSS Color Module Level 4>. URL: https://drafts.csswg.org/css-color-4/
992+
Tab Atkins Jr.; Chris Lilley; Lea Verou. <CSS Color Module Level 4>. URL: https://drafts.csswg.org/css-color-4/
993993
[CSS-DISPLAY-3]
994994
Elika Etemad; Tab Atkins Jr.. <CSS Display Module Level 3>. URL: https://drafts.csswg.org/css-display/
995995
[CSS-FONTS-3]
996996
John Daggett; Myles Maxfield; Chris Lilley. <CSS Fonts Module Level 3>. URL: https://drafts.csswg.org/css-fonts-3/
997997
[CSS-TEXT-3]
998998
Elika Etemad; Koji Ishii; Florian Rivoal. <CSS Text Module Level 3>. URL: https://drafts.csswg.org/css-text-3/
999999
[CSS-TRANSITIONS-1]
1000-
David Baron; et al. <CSS Transitions>. URL: https://drafts.csswg.org/css-transitions/
1000+
Chris Marrin; et al. <CSS Transitions Module Level 1>. URL: https://drafts.csswg.org/css-transitions/
10011001

10021002

10031003
●●trans_metadata
@@ -3199,11 +3199,14 @@ <h4 title="Instantiating Counters">4.4.2. ~counterの~instance化</h4>
31993199
</p>
32003200
<ol>
32013201
<li>
3202-
%N ~LET ε
3202+
%N ~LET 0
32033203
32043204
Let num be 0.
3205+
</li>
3206+
<li>
3207+
%最後の増分 ~LET 0
32053208
3206-
Let first be true.
3209+
Let lastNonZeroIncrementNegated be 0.
32073210
</li>
32083211
<li>
32093212
<p>
@@ -3216,19 +3219,19 @@ <h4 title="Instantiating Counters">4.4.2. ~counterの~instance化</h4>
32163219
</p>
32173220
<ol>
32183221
<li>
3219-
%increment ~LET
3220-
%E の `counter-increment$p で %~counter の`値$cTが増減される量(増減されないならば 0
3222+
%増分 ~LET %E の `counter-increment$p で %~counter の`値$cTが増減される量
3223+
(減少するならば負になる
32213224
32223225
Let incrementNegated be el’s counter-increment integer value for this counter, multiplied by -1.
32233226
</li>
32243227
<li>
32253228
~IF[
3226-
%N ~EQ ε
3229+
%増分 ~NEQ 0
32273230
32283231
3229-
%N ~SET 0 ~MINUS %increment
3232+
%最後の増分 ~SET %増分
32303233
3231-
If first is true, then add incrementNegated to num and set first to false.
3234+
If incrementNegated is not zero, then set lastNonZeroIncrementNegated to incrementNegated.
32323235
</li>
32333236
<li>
32343237
~IF[
@@ -3241,13 +3244,18 @@ <h4 title="Instantiating Counters">4.4.2. ~counterの~instance化</h4>
32413244
If el sets this counter with counter-set, then add that integer value to num and break this loop.
32423245
</li>
32433246
<li>
3244-
%N ~DECBY %increment
3247+
%N ~DECBY %増分
32453248
32463249
Add incrementNegated to num.
32473250
</li>
32483251
</ol>
32493252
</li>
32503253
<li>
3254+
%N ~DECBY %最後の増分
3255+
3256+
Add lastNonZeroIncrementNegated to num.
3257+
</li>
3258+
<li>
32513259
~RET %N
32523260
32533261
Return num.

0 commit comments

Comments
 (0)