This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20126 - Description of BDI element needs to be updated after a change in the CSS unicode-bidi:isolate spec
Summary: Description of BDI element needs to be updated after a change in the CSS unic...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on: 20085
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-28 18:21 UTC by Ian 'Hixie' Hickson
Modified: 2013-03-29 23:20 UTC (History)
5 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2012-11-28 18:21:30 UTC
+++ This bug was initially created as a clone of Bug #20085 +++

The BDI element is currently described as follows:

> The bdi element represents a span of text that is to be isolated from its
> surroundings for the purposes of bidirectional text formatting. [BIDI]
> [...]
> For the purposes of applying the bidirectional algorithm to the contents of a
> bdi element, user agents must treat the element as a paragraph-level container.
>
> For the purposes of applying the bidirectional algorithm to the paragraph-level
> container that a bdi element finds itself within, the bdi element must be
> treated like a U+FFFC OBJECT REPLACEMENT CHARACTER (in the same manner that an
> image or other inline object is handled).

This description was based on the spec for unicode-bidi:isolate (http://www.w3.org/TR/2012/WD-css3-writing-modes-20120501/), through which BDI is implemented:

> For the purposes of the Unicode bidirectional algorithm, the contents of the
> element are considered to be inside a separate, independent paragraph with a
> base directionality given by the element's ‘direction’ property, and for the
> purpose of bidi resolution in its containing bidi paragraph (if any), the
> element itself is treated as if it were an Object Replacement Character
> (U+FFFC).

However, due to the subsequent addition of bidi isolates to Unicode (on track for Unicode 6.3), the inability of Unicode isolates to span across a paragraph break, and the desire to base CSS isolates on Unicode isolates, the CSS definition had to be modified (http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/):

> On an inline element, this bidi-isolates its contents. This is similar to a
> directional embedding (and increases the embedding level accordingly) except
> that each sequence of inline-level boxes uninterrupted by any block boundary
> or forced paragraph break is treated as an isolated sequence:
> * the content within the sequence is ordered as if inside an independent
> paragraph with the base directionality specified by the element's ‘direction’
> property.
> * for the purpose of bidi resolution in its containing bidi paragraph, the
> sequence is treated as if it were a single Object Replacement Character
> (U+FFFC).
> In effect, neither is the content inside the element bidi-affected by the
> content surrounding the element, nor is the content surrounding the element
> bidi-affected by the content or specified directionality of the element.
> However, forced paragraph breaks within the element still create a
> corresponding break in the containing paragraph.

The new CSS definition, and especially the note about forced paragraph breaks within the element (e.g. BR), should be reflected in the HTML spec of BDI.
Comment 1 Ian 'Hixie' Hickson 2013-02-08 02:30:15 UTC
aharon: Where does Unicode define these new bidi formatting features?
Comment 2 Aharon Lanin 2013-02-08 09:53:34 UTC
(In reply to comment #1)
> aharon: Where does Unicode define these new bidi formatting features?

http://www.unicode.org/draft/reports/tr9/tr9.html
Comment 3 Ian 'Hixie' Hickson 2013-03-29 23:20:21 UTC
Thanks.