@@ -922,17 +922,11 @@ Legacy compatibility</h4>
922
922
* it sets 'continue' to ''-webkit-discard'' instead of ''discard''
923
923
* it unconditionally sets 'block-ellipsis' to ''block-ellipsis/auto''
924
924
925
- Additionally, for children (including anonymous children)
926
- of boxes whose 'display' property computes to ''-webkit-box'' or ''-webkit-inline-box'' ,
927
- the used values of the 'max-lines' , 'continue' , and 'block-ellipsis' properties
928
- are taken from the computed values of the parent box;
929
- the computed values of these properties on the box itself are ignored.
930
-
931
925
The <dfn value for=continue>-webkit-discard</dfn> value behaves identically to ''discard'' ,
932
926
except that it only takes effect
933
- if the computed value of the 'display' property on the parent
927
+ if the value of the 'display' property
934
928
is ''-webkit-box'' or ''-webkit-inline-box''
935
- and the computed value of the '-webkit-box-orient' property on the parent
929
+ and the value of the '-webkit-box-orient' property
936
930
is ''-webkit-box-orient/vertical'' .
937
931
938
932
Note: Implementations of the legacy '-webkit-line-clamp' property
@@ -1127,6 +1121,22 @@ Fragmentation of Overflow: the 'continue' property</h3>
1127
1121
if it is laid out above the position
1128
1122
representing the end of this <a>fragmentation container</a> .
1129
1123
1124
+ Additionaliy,
1125
+ for compatibility (see [[#webkit-line-clamp]] ),
1126
+ when the [=computed value=] of the 'continue' property is ''discard''
1127
+ and the [=computed value=] of the '-webkit-box-orient' property is ''vertical'' :
1128
+ * If the [=computed value=] of the 'display' property is ''-webkit-box'' ,
1129
+ the box establishes a [=BFC=] as if it had been ''flow-root'' .
1130
+ * If the [=computed value=] of the 'display property is ''-webkit-inline-box' ',
1131
+ the box establishes a [=BFC=] as if it had been ''inline-block'' .
1132
+
1133
+ Note: This means that 'line-clamp' will work
1134
+ if both or neither of ''-webkit-box-orient: vertical''
1135
+ and ''display: -webkit-box'' or ''display: -webkit-inline-box'' are set,
1136
+ but not if ''display: -webkit-box'' or ''display: -webkit-inline-box'' is set
1137
+ while ''-webkit-box-orient: vertical'' isn't,
1138
+ as the box would be a [=flex container=] rather than a [=block container=] ,
1139
+ and thus the 'continue' property would not apply.
1130
1140
1131
1141
<h2 id=sbg-ext class=nonum>
1132
1142
Appendix A: Possible extensions for ''scrollbar-gutter''</h2>
@@ -1445,6 +1455,10 @@ Recent Changes</h3>
1445
1455
(<a href="https://github.com/w3c/csswg-drafts/issues/9815">Issue 9815</a> )
1446
1456
<li> Establish an Independent Formatting Context when ''continue: discard'' is used.
1447
1457
(<a href="https://github.com/w3c/csswg-drafts/issues/10323">Issue 10323</a> )
1458
+ <li> Blockify elements with <code> (-webkit-)line-clamp</code> ,
1459
+ <code> display: -webkit-(inline-)box</code>
1460
+ and <code> -webkit-box-orient: vertical</code> .
1461
+ (<a href="https://github.com/w3c/csswg-drafts/issues/10324">Issue 10324</a> )
1448
1462
</ul>
1449
1463
1450
1464
<h3 id="changes-l3">
0 commit comments