Skip to content

Commit 1b17c21

Browse files
[css-values-4] Add round(line-width, ...). w3c/csswg-drafts@f63d90e
1 parent fa8de57 commit 1b17c21

1 file changed

Lines changed: 89 additions & 15 deletions

File tree

css-values-ja.html

Lines changed: 89 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@
173173
●●options
174174

175175
spec_title:CSS Values and Units Module Level 4
176-
spec_date:2026-01-30
177-
trans_update:2025-11-04
176+
spec_date:2026-03-04
177+
trans_update:2026-03-06
178178
source_checked:250605
179179
page_state_key:CSS
180180
original_url:https://drafts.csswg.org/css-values-4/
@@ -506,7 +506,7 @@
506506
近付く:approach
507507
近付く:approaching
508508
^en:tangent
509-
十分近い:sufficiently close
509+
近過ぎる:sufficiently close
510510
^en:not a number
511511

512512
●構文
@@ -1016,6 +1016,9 @@
10161016
総じて:overall
10171017
例えば:say,
10181018
~~先送り:punt
1019+
それでも:anyway
1020+
用心すること:Use caution
1021+
まず無いに等しい:almost certainly nil
10191022

10201023
●言い換え
10211024
〜を皮切りに:following 〜’s lead
@@ -1192,6 +1195,7 @@
11921195
小さい方:smaller
11931196
小さい:small
11941197
より小さ:smaller
1198+
小さ過ぎる:sufficiently small
11951199
大きい:large
11961200
より大きい:larger
11971201
大きい方:larger
@@ -1569,6 +1573,7 @@
15691573
v.up:#valdef-rounding-strategy-up
15701574
v.down:#valdef-rounding-strategy-down
15711575
v.to-zero:#valdef-rounding-strategy-to-zero
1576+
v.line-width:#valdef-rounding-strategy-line-width
15721577

15731578
v.e:#valdef-calc-e
15741579
v.pi:#valdef-calc-pi
@@ -1923,9 +1928,9 @@
19231928
[CSS-CASCADE-5]
19241929
Elika Etemad; Miriam Suzanne; Tab Atkins Jr.. <CSS Cascading and Inheritance Level 5. URL: https://drafts.csswg.org/css-cascade-5/
19251930
[CSS-COLOR-4]
1926-
Chris Lilley; Tab Atkins Jr.; Lea Verou. <CSS Color Module Level 4. URL: https://drafts.csswg.org/css-color-4/
1931+
Tab Atkins Jr.; Chris Lilley; Lea Verou. <CSS Color Module Level 4. URL: https://drafts.csswg.org/css-color-4/
19271932
[CSS-COLOR-5]
1928-
Chris Lilley; et al. <CSS Color Module Level 5. URL: https://drafts.csswg.org/css-color-5/
1933+
Chris Lilley; Una Kravets; Lea Verou. <CSS Color Module Level 5. URL: https://drafts.csswg.org/css-color-5/
19291934
[CSS-CONDITIONAL-3]
19301935
Chris Lilley; David Baron; Elika Etemad. <CSS Conditional Rules Module Level 3. URL: https://drafts.csswg.org/css-conditional-3/
19311936
[CSS-COUNTER-STYLES-3]
@@ -1989,7 +1994,7 @@
19891994
[INFRA]
19901995
Anne van Kesteren; Domenic Denicola. <Infra Standard>. Living Standard. URL: https://infra.spec.whatwg.org/
19911996
[MEDIAQUERIES-5]
1992-
Dean Jackson; et al. <Media Queries Level 5. URL: https://drafts.csswg.org/mediaqueries-5/
1997+
Tab Atkins Jr.; et al. <Media Queries Level 5. URL: https://drafts.csswg.org/mediaqueries-5/
19931998
[RFC2119]
19941999
S. Bradner. <Key words for use in RFCs to Indicate Requirement Levels>. March 1997. Best Current Practice. URL: https://datatracker.ietf.org/doc/html/rfc2119
19952000
[UNICODE]
@@ -2014,7 +2019,7 @@
20142019
[CSS-OVERFLOW-4]
20152020
David Baron; Florian Rivoal; Elika Etemad. <CSS Overflow Module Level 4. URL: https://drafts.csswg.org/css-overflow-4/
20162021
[CSS-RHYTHM-1]
2017-
Koji Ishii; Elika Etemad. <CSS Rhythmic Sizing>. URL: https://drafts.csswg.org/css-rhythm/
2022+
Elika Etemad; Koji Ishii. <CSS Rhythmic Sizing Module Level 1. URL: https://drafts.csswg.org/css-rhythm/
20182023
[CSS-TEXT-3]
20192024
Elika Etemad; Koji Ishii; Florian Rivoal. <CSS Text Module Level 3. URL: https://drafts.csswg.org/css-text-3/
20202025
[CSS-TEXT-DECOR-4]
@@ -2024,7 +2029,7 @@
20242029
[CSS-UI-4]
20252030
Tab Atkins Jr.; Florian Rivoal. <CSS Basic User Interface Module Level 4. URL: https://drafts.csswg.org/css-ui-4/
20262031
[MEDIAQ]
2027-
Florian Rivoal; Tab Atkins Jr.. <Media Queries Level 4. URL: https://drafts.csswg.org/mediaqueries-4/
2032+
Tab Atkins Jr.; Florian Rivoal. <Media Queries Level 4. URL: https://drafts.csswg.org/mediaqueries-4/
20282033
[QUIRKS]
20292034
Simon Pieters. <Quirks Mode Standard>. Living Standard. URL: https://quirks.spec.whatwg.org/
20302035
[RFC6694]
@@ -7902,6 +7907,39 @@ <h3 title="Stepped Value Functions: round(), mod(), and rem()">10.3. 丸ng関数
79027907
79037908
Choose whichever of lower B and upper B that has the smallest absolute difference from 0.
79047909
</dd>
7910+
7911+
<dt>`line-width@v </dt>
7912+
<dd>
7913+
7914+
~vA ~GTE 0
7915+
]かつ[
7916+
~vB は省略された
7917+
]場合、
7918+
次の結果になる
7919+
7920+
`長さを機器~画素の整数倍に留める$( ~vA )
7921+
7922+
If A is non-negative and B is omitted, A is snapped as a border width.
7923+
</dd>
7924+
<dd>
7925+
他の場合,[
7926+
~vA ~GT 0
7927+
]かつ[
7928+
%低いB, %高いB どちらか【片方】が 0
7929+
]の場合、
7930+
次の結果になる
7931+
7932+
`長さを機器~画素の整数倍に留める$( %低いB, %高いB のうち 0 でない方 )
7933+
7934+
Otherwise,\
7935+
↓ identical to nearest,\
7936+
except that if A is positive (non-zero) and one of lower B or upper B is zero, choose the non-zero one, then snap as a border width.
7937+
</dd>
7938+
<dd>
7939+
他の場合、
7940+
`nearest$v の場合と一致する。
7941+
7942+
</dd>
79057943
</dl>
79067944

79077945
<p>
@@ -7924,19 +7962,55 @@ <h3 title="Stepped Value Functions: round(), mod(), and rem()">10.3. 丸ng関数
79247962
</p>
79257963

79267964
<p>
7927-
~vA の`型$が `number$t に合致する場合には、
7928-
~vB を省略してもヨイ
7929-
— その場合の既定は `1^v とする。
7930-
他の場合に ~vB を省略することは妥当でない。
7965+
`rounding-strategy$t が `line-width$v をとる場合、
7966+
~vA の`型$は `length$t に合致しなければナラナイ。
7967+
7968+
* If &lt;rounding-strategy&gt; is line-width, the type of A must match &lt;length&gt;.
7969+
</p>
7970+
7971+
<div>
7972+
<p>
7973+
~vB を省略してもヨイのは、
7974+
次に挙げる事例に限られる
7975+
— 他のすべての事例においては、
7976+
妥当でない:
7977+
</p>
7978+
<ul>
7979+
<li>
7980+
~vA の`型$が `number$t に合致する場合
7981+
7982+
この場合の既定は `1^v とする。
7983+
</li>
7984+
<li>
7985+
`rounding-strategy$t が `line-width$v をとる場合
7986+
7987+
(上で定義した)特別な挙動を伴う
7988+
— 本質的に,既定は 1 機器~画素になるよう。
7989+
</li>
7990+
</ul>
7991+
7992+
If the type of A matches &lt;number&gt;, then B may be omitted, and defaults to 1. If &lt;rounding-strategy&gt; is line-width, B may also be omitted and has special behavior (defined above) essentially defaulting it to one device pixel. In all other cases, omitting B is invalid.
7993+
</div>
7994+
7995+
<p class="advisement"><strong>
7996+
`round(line-width, …)^v は,
7997+
0 でない値が決して 0 へ丸められないことを確保するよう試みるが、
7998+
それでも, ~vA として小さ過ぎる値を渡すと内部的には 0 として表現されるようになるかもしれない。
7999+
ごく小さい値を書くときは、
8000+
用心すること
8001+
— `round(line-width, 0.1px)^v は,
8002+
`round(line-width, 0.0001px)^v よりも安全であり、
8003+
実施においては,この 2 つの相違は まず無いに等しい。
8004+
</strong>
79318005
7932-
If the type of A matches &lt;number&gt;, then B may be omitted, and defaults to 1; omitting B is otherwise invalid.
8006+
While round(line-width, ...) attempts to ensure that non-zero values never round to zero, passing a sufficiently small A value might cause it to be represented as 0 internally anyway. Use caution when writing very small values; round(line-width, 0.1px) is safer than round(line-width, 0.0001px), and the difference between the two is almost certainly nil in practice.
79338007
</p>
79348008

79358009
<p class="issue">
79368010
~CSSOMは、
79378011
どう丸めるか指定する必要がある
79388012
— おそらく、
7939-
~CSS関数は,既定では同じ仕方で丸めるようにするのが良い。
8013+
各種~CSS関数は,既定では同じ仕方で丸めるようにするのが良い。
79408014
どの挙動が利用されるべきか?
79418015
[`5689$issue]
79428016
@@ -8648,7 +8722,7 @@ <h4 title="Argument Ranges">10.4.1. 引数の範囲</h4>
86488722
なので、
86498723
これらの値に特有な挙動を定義することすら困難になる
86508724
— ある実装が内部的に~radianを利用する場合、
8651-
入力が漸近~値に`十分近い^emときには,
8725+
入力が漸近~値に`近過ぎる^emときには,
86528726
何らかの `fuzzy^en 照合を行って,定義された値を返す必要があろう。
86538727
86548728
Further, whether or not the asymptotic values are exactly representable in implementations depends on how they internally store and manipulate angles; when written in degrees the values are simple (90deg, etc), but in radians the values are transcendental (pi / 2, etc) and cannot be exactly represented. So, even defining a specific behavior for these values is difficult; if an implementation uses radians internally, it would have to do some fuzzy matching to return the defined value when the input is sufficiently close to the asymptote.

0 commit comments

Comments
 (0)