Skip to content

Commit 9343c23

Browse files
frivoalfantasai
authored andcommitted
[css-box][css-backgrounds][css-logical] Applicability of M/B/P on ruby
This updates the definitions of the various margin/border/padding properties to clarify that they do not apply to ruby base containers nor to ruby annotation containers, as resolved in w3c#4937 (comment) For css-box-3 and css-backgrounds-3, this is marked at risk, since they are more mature than css-ruby and may need to move along the REC track before it does. For css-logical, there's no need to be explicit, and thus no need to mark at-risk: tying the applicability of the logical longhands to that of the physical ones deals with it without introducing tight coupling.
1 parent 4945e1d commit 9343c23

File tree

4 files changed

+25
-21
lines changed

4 files changed

+25
-21
lines changed

css-backgrounds-3/Overview.bs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Editor: Brad Kemper, Invited Expert, brad.kemper@gmail.com, w3cid 43245
1717
Abstract: This draft contains the features of CSS relating to borders and backgrounds. The main extensions compared to <a href="https://www.w3.org/TR/CSS2/">level&nbsp;2</a> are borders consisting of images, boxes with multiple backgrounds, boxes with rounded corners and boxes with shadows.
1818
Test Suite: http://test.csswg.org/suites/css3-background/nightly-unstable/
1919
At risk: animatability of 'box-shadow'
20+
At risk: applicability of 'border' and its longhands to [=ruby base containers=] and [=ruby annotation containers=]
2021
Use <i> Autolinks: yes
2122
</pre>
2223
<pre class="link-defaults">
@@ -1368,7 +1369,7 @@ color ('border-color'), and thickness ('border-width') of the border.
13681369
<td><a href="https://www.w3.org/TR/css3-color/#currentcolor">currentColor</a>
13691370
<tr>
13701371
<th>Applies to:
1371-
<td>all elements
1372+
<td>all elements except [=ruby base containers=] and [=ruby annotation containers=]
13721373
<tr>
13731374
<th>Inherited:
13741375
<td>no
@@ -1395,7 +1396,7 @@ color ('border-color'), and thickness ('border-width') of the border.
13951396
<td>(see individual properties)
13961397
<tr>
13971398
<th>Applies to:
1398-
<td>all elements
1399+
<td>all elements except [=ruby base containers=] and [=ruby annotation containers=]
13991400
<tr>
14001401
<th>Inherited:
14011402
<td>no
@@ -1438,7 +1439,7 @@ also the same as top.
14381439
<td>none
14391440
<tr>
14401441
<th>Applies to:
1441-
<td>all elements
1442+
<td>all elements except [=ruby base containers=] and [=ruby annotation containers=]
14421443
<tr>
14431444
<th>Inherited:
14441445
<td>no
@@ -1465,7 +1466,7 @@ also the same as top.
14651466
<td>(see individual properties)
14661467
<tr>
14671468
<th>Applies to:
1468-
<td>all elements
1469+
<td>all elements except [=ruby base containers=] and [=ruby annotation containers=]
14691470
<tr>
14701471
<th>Inherited:
14711472
<td>no
@@ -1588,7 +1589,7 @@ the padding is less than the radius of the corner.
15881589
<td>medium
15891590
<tr>
15901591
<th>Applies to:
1591-
<td>all elements
1592+
<td>all elements except [=ruby base containers=] and [=ruby annotation containers=]
15921593
<tr>
15931594
<th>Inherited:
15941595
<td>no
@@ -1615,7 +1616,7 @@ the padding is less than the radius of the corner.
16151616
<td>(see individual properties)
16161617
<tr>
16171618
<th>Applies to:
1618-
<td>all elements
1619+
<td>all elements except [=ruby base containers=] and [=ruby annotation containers=]
16191620
<tr>
16201621
<th>Inherited:
16211622
<td>no
@@ -1671,7 +1672,7 @@ style is ''border-style/none'' and therefore the used width is 0.
16711672
<td>See individual properties
16721673
<tr>
16731674
<th>Applies to:
1674-
<td>all elements
1675+
<td>all elements except [=ruby base containers=] and [=ruby annotation containers=]
16751676
<tr>
16761677
<th>Inherited:
16771678
<td>no
@@ -1704,7 +1705,7 @@ values are set to their initial values.
17041705
<td>See individual properties
17051706
<tr>
17061707
<th>Applies to:
1707-
<td>all elements
1708+
<td>all elements except [=ruby base containers=] and [=ruby annotation containers=]
17081709
<tr>
17091710
<th>Inherited:
17101711
<td>no

css-box-3/Overview.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Previous Version: https://www.w3.org/TR/2018/WD-css-box-3-20180802/
1111
Abstract: This specification describes the margin and padding properties, which create spacing in and around a CSS box.
1212
Editor: Elika J. Etemad / fantasai, Invited Expert, http://fantasai.inkedblade.net/contact, w3cid 35400
1313
Ignored Terms: internal table elements, block layout
14+
At risk: applicability of 'margin', 'padding' and their longhands to [=ruby base containers=] and [=ruby annotation containers=]
1415
</pre>
1516
<pre class='link-defaults'>
1617
spec:css-sizing-3; type:dfn; text:size
@@ -286,7 +287,7 @@ Page-relative (Physical) Margin Properties: the 'margin-top', 'margin-right', 'm
286287
Name: margin-top, margin-right, margin-bottom, margin-left
287288
Value: <<length-percentage>> | auto
288289
Initial: 0
289-
Applies to: all elements except <a>internal table elements</a>
290+
Applies to: all elements except <a>internal table elements</a>, [=ruby base containers=], and [=ruby annotation containers=]
290291
Inherited: no
291292
Percentages: refer to <a>logical width</a> of containing block
292293
Computed value: the keyword ''margin/auto'' or a computed <<length-percentage>> value
@@ -306,7 +307,7 @@ Margin Shorthand: the 'margin' property {#margin-shorthand}
306307
Name: margin
307308
Value: <<'margin-top'>>{1,4}
308309
Initial: 0
309-
Applies to: all elements except <a>internal table elements</a>
310+
Applies to: all elements except <a>internal table elements</a>, [=ruby base containers=], and [=ruby annotation containers=]
310311
Inherited: no
311312
Percentages: refer to <a>logical width</a> of containing block
312313
Computed value: see individual properties
@@ -380,7 +381,7 @@ Page-relative (Physical) Padding Properties: the 'padding-top', 'padding-right',
380381
Name: padding-top, padding-right, padding-bottom, padding-left
381382
Value: <<length-percentage>>
382383
Initial: 0
383-
Applies to: all elements except: <a>internal table elements</a> other than table cells
384+
Applies to: all elements except: <a>internal table elements</a> other than table cells, [=ruby base containers=], and [=ruby annotation containers=]
384385
Inherited: no
385386
Percentages: refer to <a>logical width</a> of containing block
386387
Computed value: a computed <<length-percentage>> value
@@ -399,7 +400,7 @@ Padding Shorthand: the 'padding' property {#padding-shorthand}
399400
Name: padding
400401
Value: <<'padding-top'>>{1,4}
401402
Initial: 0
402-
Applies to: all elements except: <a>internal table elements</a> other than table cells
403+
Applies to: all elements except: <a>internal table elements</a> other than table cells, [=ruby base containers=], and [=ruby annotation containers=]
403404
Inherited: no
404405
Percentages: refer to <a>logical width</a> of containing block
405406
Computed value: see individual properties
@@ -462,6 +463,7 @@ Changes Since CSS Level 2 {#changes}
462463
since <a href="https://www.w3.org/TR/CSS2/box.html">CSS Level 2</a>:
463464
<ul>
464465
<li>Adapting the prose slightly to account for vertical <a>writing modes</a>.
466+
<li>Defining the applicability of 'margin', 'padding' and their longhands to [=ruby base containers=] and [=ruby annotation containers=] (at risk)
465467
</ul>
466468

467469
Privacy and Security Considerations {#priv-sec}

css-box-4/Overview.bs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ Page-relative (Physical) Margin Properties: the 'margin-top', 'margin-right', 'm
287287
Name: margin-top, margin-right, margin-bottom, margin-left
288288
Value: <<length-percentage>> | auto
289289
Initial: 0
290-
Applies to: all elements except <a>internal table elements</a>
290+
Applies to: all elements except <a>internal table elements</a>, [=ruby base containers=], and [=ruby annotation containers=]
291291
Inherited: no
292292
Percentages: refer to <a>logical width</a> of containing block
293293
Computed value: the keyword ''margin/auto'' or a computed <<length-percentage>> value
@@ -307,7 +307,7 @@ Margin Shorthand: the 'margin' property {#margin-shorthand}
307307
Name: margin
308308
Value: <<'margin-top'>>{1,4}
309309
Initial: 0
310-
Applies to: all elements except <a>internal table elements</a>
310+
Applies to: all elements except <a>internal table elements</a>, [=ruby base containers=], and [=ruby annotation containers=]
311311
Inherited: no
312312
Percentages: refer to <a>logical width</a> of containing block
313313
Computed value: see individual properties
@@ -471,7 +471,7 @@ Page-relative (Physical) Padding Properties: the 'padding-top', 'padding-right',
471471
Name: padding-top, padding-right, padding-bottom, padding-left
472472
Value: <<length-percentage>>
473473
Initial: 0
474-
Applies to: all elements except: <a>internal table elements</a> other than table cells
474+
Applies to: all elements except: <a>internal table elements</a> other than table cells, [=ruby base containers=], and [=ruby annotation containers=]
475475
Inherited: no
476476
Percentages: refer to <a>logical width</a> of containing block
477477
Computed value: a computed <<length-percentage>> value
@@ -490,7 +490,7 @@ Padding Shorthand: the 'padding' property {#padding-shorthand}
490490
Name: padding
491491
Value: <<'padding-top'>>{1,4}
492492
Initial: 0
493-
Applies to: all elements except: <a>internal table elements</a> other than table cells
493+
Applies to: all elements except: <a>internal table elements</a> other than table cells, [=ruby base containers=], and [=ruby annotation containers=]
494494
Inherited: no
495495
Percentages: refer to <a>logical width</a> of containing block
496496
Computed value: see individual properties
@@ -562,6 +562,7 @@ Changes Since CSS Level 2 {#changes-since-2}
562562
since <a href="https://www.w3.org/TR/CSS2/box.html">Level 2</a>:
563563
<ul>
564564
<li>Adapting the prose slightly to account for vertical <a>writing modes</a>.
565+
<li>Defining the applicability of 'margin', 'padding' and their longhands to [=ruby base containers=] and [=ruby annotation containers=]
565566
</ul>
566567

567568
Privacy and Security Considerations {#priv-sec}

css-logical-1/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ the 'padding-block-start', 'padding-block-end', 'padding-inline-start', 'padding
509509
Name: padding-block-start, padding-block-end, padding-inline-start, padding-inline-end
510510
Value: <<'padding-top'>>
511511
Initial: 0
512-
Applies to: all elements
512+
Applies to: Same as 'padding-top'
513513
Inherited: no
514514
Percentages: As for the corresponding physical property
515515
Computed value: Same as corresponding 'padding-*' properties
@@ -545,7 +545,7 @@ the 'border-block-start-width', 'border-block-end-width', 'border-inline-start-w
545545
Name: border-block-start-width, border-block-end-width, border-inline-start-width, border-inline-end-width
546546
Value: <<'border-top-width'>>
547547
Initial: medium
548-
Applies to: all elements
548+
Applies to: Same as 'border-top-width'
549549
Inherited: no
550550
Percentages: n/a
551551
Computed value: Same as corresponding 'border-*-width' properties
@@ -579,7 +579,7 @@ the 'border-block-start-style', 'border-block-end-style', 'border-inline-start-s
579579
Name: border-block-start-style, border-block-end-style, border-inline-start-style, border-inline-end-style
580580
Value: <<'border-top-style'>>
581581
Initial: none
582-
Applies to: all elements
582+
Applies to: Same as 'border-top-style'
583583
Inherited: no
584584
Percentages: n/a
585585
Computed value: Same as corresponding 'border-*-style' properties
@@ -612,7 +612,7 @@ the 'border-block-start-color', 'border-block-end-color', 'border-inline-start-c
612612
Name: border-block-start-color, border-block-end-color, border-inline-start-color, border-inline-end-color
613613
Value: <<'border-top-color'>>
614614
Initial: currentcolor
615-
Applies to: all elements
615+
Applies to: Same as 'border-top-color'
616616
Inherited: no
617617
Percentages: n/a
618618
Computed value: Same as corresponding 'border-*-color' properties
@@ -669,7 +669,7 @@ the 'border-start-start-radius', 'border-start-end-radius', 'border-end-start-ra
669669
Name: border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius
670670
Value: <<'border-top-left-radius'>>
671671
Initial: Same as 'border-top-left-radius'
672-
Applies to: all elements
672+
Applies to: Same as 'border-top-left-radius'
673673
Inherited: no
674674
Percentages: Same as 'border-top-left-radius'
675675
Computed value: Same as corresponding physical 'border-*-radius' properties

0 commit comments

Comments
 (0)