You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -7902,6 +7907,39 @@ <h3 title="Stepped Value Functions: round(), mod(), and rem()">10.3. 丸ng関数
7902
7907
◎
7903
7908
Choose whichever of lower B and upper B that has the smallest absolute difference from 0.
7904
7909
</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>
7905
7943
</dl>
7906
7944
7907
7945
<p>
@@ -7924,19 +7962,55 @@ <h3 title="Stepped Value Functions: round(), mod(), and rem()">10.3. 丸ng関数
7924
7962
</p>
7925
7963
7926
7964
<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 <rounding-strategy> is line-width, the type of A must match <length>.
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 <number>, then B may be omitted, and defaults to 1. If <rounding-strategy> 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.
If the type of A matches <number>, 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.
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