Skip to content

Commit df2c247

Browse files
andreubotellafrivoal
authored andcommitted
[css-overflow-4] Update bidi handling of ellipses
Updates the bidi handling of the `text-overflow` and `block-ellipsis` ellipses as per #12617.
1 parent 0776b2b commit df2c247

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

css-overflow-4/Overview.bs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,6 @@ Inline Overflow Ellipsis: the 'text-overflow' property</h3>
350350
<dt id=overflow-string><<string>>
351351
<dd>
352352
Render the given string to represent clipped inline content.
353-
The given string is treated as an independent paragraph
354-
for bidi purposes.
355353

356354
<dt dfn-type=function><dfn>fade( [ <<length-percentage>> ] )</dfn>
357355
<dd>
@@ -474,6 +472,17 @@ ellipsing details</h3>
474472
then clip the rendering of the ellipsis itself
475473
(on the same side that neutral characters on the line
476474
would have otherwise been clipped with the ''text-overflow:clip'' value).
475+
476+
<li>
477+
For bidi purposes, the ellipsis and string values must be treated
478+
as if they were wrapped in an anonymous inline
479+
with ''unicode-bidi: isolate''
480+
which inherits ''direction'' from the block.
481+
482+
<wpt pathprefix="/css/css-ui/">
483+
text-overflow-string-006.html
484+
text-overflow-string-007.html
485+
</wpt>
477486
</ul>
478487

479488

@@ -821,7 +830,7 @@ Indicating Block-Axis Overflow: the 'block-ellipsis' property</h3>
821830
* The [=block overflow ellipsis=]
822831
is wrapped in an anonymous inline
823832
whose parent is the [=block container=]’s [=root inline box=].
824-
This inline is assigned ''unicode-bidi: plaintext''
833+
This inline is assigned ''unicode-bidi: isolate''
825834
and ''line-height: 0''.
826835

827836
<wpt>
@@ -881,10 +890,7 @@ Indicating Block-Axis Overflow: the 'block-ellipsis' property</h3>
881890
* The anonymous inline of [=block overflow ellipsis=] is placed
882891
after any remaining content,
883892
after [[css-text-4#white-space-phase-2]],
884-
as a direct child of the <a>block container</a>’s <a>root inline box</a>,
885-
with the appropriate bidi embedding levels
886-
given its directionality
887-
and that of its parent.
893+
as a direct child of the <a>block container</a>’s <a>root inline box</a>.
888894

889895
<wpt>
890896
block-ellipsis-004.html

0 commit comments

Comments
 (0)