Skip to content

Commit be796b2

Browse files
committed
[css-display-3] Tweak text content example per Amelia’s suggestions. #3302
1 parent bce28d9 commit be796b2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

css-display-3/Overview.bs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ SVG Elements {#unbox-svg}
12751275
its child text content and elements are no longer valid.
12761276
For that reason, ''display: contents'' on <{text}>
12771277
prevents the entire text element from being rendered.
1278-
In contrast, any content inside a <{tspan}> or <{textPath}>
1278+
In contrast, any valid content inside a <{tspan}> or <{textPath}>
12791279
is also valid content inside the parent text formatting context,
12801280
so the hoisting behavior applies for these elements.
12811281

@@ -1287,8 +1287,6 @@ SVG Elements {#unbox-svg}
12871287
that is an invalid change of rendering context.
12881288
Never-rendered container elements therefore cannot be "un-boxed"
12891289
by ''display: contents''.
1290-
(Also, authors cannot override the 'display' property on these elements:
1291-
it is forced to ''none'' by an ''!important'' user agent style rule.)
12921290
</div>
12931291

12941292
When an element is stripped from the formatting tree,

0 commit comments

Comments
 (0)