Skip to content

Commit e829b35

Browse files
committed
[css-tables] Fixed border conflict resolution, added fantasai' issue
1 parent baf2234 commit e829b35

1 file changed

Lines changed: 30 additions & 15 deletions

File tree

css-tables-3/Overview.bs

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,21 +1013,7 @@ Ignored Terms: block-level box
10131013
those keep their initial values.
10141014
</div>
10151015

1016-
<p>
1017-
<b>For any <a>table-root</a> element:</b>
1018-
</p>
1019-
1020-
<ul>
1021-
<li>Harmonize the <a>table-root</a> element border-{top,bottom,left,right}
1022-
with the corresponding border of all cells forming the border of the table (indenpendently),
1023-
without actually modifying the border properties of the <a>table-root</a> element.<br>
1024-
<br>
1025-
Once this is done, set the <a>table-root</a> element border-{&#8230;}-width
1026-
to half the maximum width found during the harmonization processes for that border,
1027-
then set border-{&#8230;}-style to solid, and border-{&#8230;}-color to transparent.
1028-
</ul>
1029-
1030-
<p><b>Then, for any <a>table-cell</a> element C° related to that <a>table-root</a> element:</b>
1016+
<p><b>For any <a>table-cell</a> element C° of a <a>table-root</a> element:</b>
10311017

10321018
<ul>
10331019
<li>Resolve conflicts with border-right:
@@ -1081,6 +1067,23 @@ Ignored Terms: block-level box
10811067
<span class="hint">(see [[#drawing-collapsed-borders]])</span>
10821068
</div>
10831069
</ul>
1070+
1071+
<p>
1072+
<b>Then, for that <a>table-root</a> element:</b>
1073+
</p>
1074+
1075+
<ul>
1076+
<li>Harmonize the <a>table-root</a> element border-{top,bottom,left,right}
1077+
with the corresponding border of all cells forming the border of the table (indenpendently),
1078+
without actually modifying the border properties of the <a>table-root</a> element.<br>
1079+
<br>
1080+
If the table and the cell border styles have the same specificity,
1081+
keep the cell border style.
1082+
<br>
1083+
Once this is done, set the <a>table-root</a> element border-{&#8230;}-width
1084+
to half the maximum width found during the harmonization processes for that border,
1085+
then set border-{&#8230;}-style to solid, and border-{&#8230;}-color to transparent.
1086+
</ul>
10841087

10851088
<!--------------------------------------------------------------------------------->
10861089
<div class="note">
@@ -1109,6 +1112,18 @@ Ignored Terms: block-level box
11091112
that &#8220;if its properties are <a href="border-specificity">more specific</a> than CurrentlyWinningBorderProperties,
11101113
set CurrentlyWinningBorderProperties to its properties&#8221;.
11111114
</div>
1115+
1116+
<div class="issue">
1117+
There is an outstanding proposal from Fantasai to
1118+
change the "more specific than" part of these rules
1119+
to "as specific or more than".
1120+
This would change the priority order
1121+
from
1122+
cell, track, track-group, table
1123+
to
1124+
table, track-group, track, cell.
1125+
1126+
</div>
11121127

11131128
<p>
11141129
Given an ordered set of borders (BC<sub>1,</sub> BC<sub>2</sub>, &#8230; located in cells C<sub>1,</sub> C<sub>2</sub>, &#8230;)

0 commit comments

Comments
 (0)