Skip to content

Commit 7553a5e

Browse files
[css-borders-4] Clarify how border-shape renders box-shadow. w3c/csswg-drafts@e6465bb
1 parent 90018c6 commit 7553a5e

File tree

1 file changed

+40
-26
lines changed

1 file changed

+40
-26
lines changed

css-borders-ja.html

Lines changed: 40 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@
215215
●●options
216216

217217
spec_title:CSS Borders and Box Decorations Module Level 4
218-
spec_date:2025-10-21
219-
trans_update:2025-10-21
218+
spec_date:2025-10-27
219+
trans_update:2025-10-28
220220
source_checked:251021
221221
page_state_key:CSS
222222
original_url:https://drafts.csswg.org/css-borders-4/
@@ -540,6 +540,7 @@
540540
p.overflow-clip-margin:~CSSOVERFLOW4#propdef-overflow-clip-margin
541541
p.overflow:~CSSOVERFLOW3#propdef-overflow
542542
p.padding:~CSSBOX#propdef-padding
543+
p.fill-rule:~SVGpainting#FillRuleProperty
543544

544545
p.box-shadow-*:#drop-shadows
545546
p.border-*-radius:#border-radius
@@ -786,6 +787,8 @@
786787

787788
●用語(他
788789
基本~図形:~SVGshapes#basic-shape
790+
~stroke図形:~SVGpainting#TermStrokeShape
791+
789792
~DOM4#concept-element ~CSSDISP#box
790793

791794
●●words_table1
@@ -4265,7 +4268,7 @@ <h4 title="Rendering corner-shape">3.9.4. 隅~図形の描画-法</h4>
42654268
To compute an element element’s border contour path given an edge targetEdge and an optional number spread (default 0):
42664269
</p>
42674270

4268-
<p class="trans-note">
4271+
<p class="trans-note">
42694272
以下,この~algoを成す内容は未訳。
42704273
</p>
42714274
</div>
@@ -6451,17 +6454,27 @@ <h3 title="The border-shape property">7.1. `border-shape^p ~prop</h3>
64516454
</p>
64526455
<ul>
64536456
<li>
6457+
<p>
64546458
2 個の場合、
64556459
~borderは,それらが定義する 2 本の~pathの合間を成す図形として描画される。
64566460
64576461
When two &lt;basic-shape&gt; values are given, the border is rendered as the shape between the two paths.\
6458-
</li>
6462+
</p>
6463+
6464+
<p class="trans-note">
6465+
2 本の~pathが交差する場合にどう解釈されるか,はっきりしない。
6466+
個々の `basic-shape$t は、
6467+
巻数~規則( `fill-rule$tp )を指定し得るとしても。
6468+
</p>
6469+
6470+
</li>
64596471
<li>
64606472
1 個の場合、
64616473
~borderは,それが定義する~pathをなぞる~strokeとして描画される。
64626474
その~stroke幅として,`関連な側$の`~border幅$
64636475
— `border-*-width$p の`算出d値$ —
64646476
を伴う下で。
6477+
【すなわち,`~stroke図形$を占める。】
64656478
64666479
When only a single &lt;basic-shape&gt; is given, the border is rendered as a stroke with the relevant side’s computed border width as the stroke width.
64676480
</li>
@@ -6492,22 +6505,12 @@ <h3 title="The border-shape property">7.1. `border-shape^p ~prop</h3>
64926505
</p>
64936506
<ul>
64946507
<li>
6495-
<p>
64966508
2 個の場合、[
64976509
1 個目(外縁)においては `border-box@~CSSSHAPES#valdef-box-border-box$v /
64986510
2 個目(内縁)においては `padding-box@~CSSSHAPES#valdef-box-padding-box$v
64996511
]になる。
65006512
これは、
65016513
`border-width$p ~propの値が最終的な図形に影響することを許容する。
6502-
</p>
6503-
6504-
<p class="trans-note">
6505-
~pathの幾何を問わず,[
6506-
1 個目/ 2 個目
6507-
]が(名目上の)[
6508-
外縁/内縁
6509-
]な~pathと見なされるのかもしれないが,はっきりしない。
6510-
</p>
65116514
65126515
When two &lt;basic-shape&gt; values are given, the first (outer) one defaults to the border box and the second (inner) one defaults to the padding box. This allows using the different border-width properties to affect the final shape.
65136516
</li>
@@ -6533,23 +6536,34 @@ <h3 title="The border-shape property">7.1. `border-shape^p ~prop</h3>
65336536
</p>
65346537

65356538
<p>
6536-
`box-shadow$p 【による影】は、
6537-
両~外縁~border~pathをなぞる。
6539+
6540+
`外影$/`内影$
6541+
]は,[
6542+
外縁~pathの外側/
6543+
内縁~pathの内側
6544+
]をなぞる。
6545+
どちらも,
6546+
~strokeとして描画される
6547+
— その~stroke幅として`拡幅~距離$ の 2 倍を伴い,
6548+
~borderの形状により切取られる下で。
65386549
6539-
A box-shadow follows both the outer border path.
6550+
An outer box-shadow follows the outside of the outer path, and an inner box-shadow follows the inside inner path. Both are rendered as a stroke, with a stroke width of spread * 2, clipped by the border shape.
65406551
</p>
65416552

65426553
<p class="trans-note">
6543-
6544-
`外影$/`内影$
6545-
]は,~borderが占める図形
6546-
(~pathが 1 本だけの場合には`~stroke図形@~SVGpainting#TermStrokeShape$)
6547-
の[
6554+
`basic-shape$t が 2 個~供された場合、
6555+
上では[
6556+
1 個目/ 2 個目
6557+
]のそれが
6558+
(~pathの幾何を問わず,名目上の)[
6559+
外縁~path/内縁~path
6560+
]を成すものと示唆されているが,はっきりしない。
6561+
1 個だけ供された場合、
6562+
`~stroke図形$の[
65486563
外縁/内縁
6549-
]をなぞることを意味すると思われるが、
6550-
はっきりしない。
6551-
例えば,~pathが 8 の字のように自己-交差する場合や 2 本の~pathが互いに交差する場合、
6552-
利用する`巻数~規則@~SVGpainting#WindingRule$も指定する必要があろう。
6564+
]を成す~pathになると思われる
6565+
— 当の~pathが自己-交差する場合、
6566+
どうなるのか,はっきりしないが。
65536567
</p>
65546568

65556569
<p>

0 commit comments

Comments
 (0)