Closed Bug 746987 Opened 13 years ago Closed 13 years ago

unicode-bidi:plaintext is supposed to work on inline elements

Categories

(Core :: Layout: Text and Fonts, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: aharon, Assigned: smontagu)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(6 files, 1 obsolete file)

When unicode-bidi:-moz-plaintext was originally implemented, the CSS Writing Modes Level 3 spec said that the plaintext value was not supposed to have any effect on inline elements. However, that changed some time ago. It currently states as follows: This value behaves as ‘isolate’ except that for the purposes of the Unicode bidirectional algorithm, the base directionality of each bidi paragraph immediately contained by the element is determined not by the element's computed ‘direction’ as usual, but by following the heuristic in rules P2 and P3 of the Unicode bidirectional algorithm. An element immediately contains a bidi paragraph if the element itself, but none of its descendants, both contains the entire bidi paragraph and is either a block container or a bidi-isolating inline. In other words, plaintext is supposed to bidi-isolate inline elements just like unicode-bidi:isolate, while giving each bidi paragraph bounded by the element its own base direction by the usual plaintext algorithm (just like it does for non-inline elements).
Attached file Test case 1 (deleted) —
Attachment #616581 - Attachment mime type: text/plain → text/html
Attached patch Patch (obsolete) (deleted) — Splinter Review
Assignee: nobody → smontagu
Attachment #616639 - Flags: review?(roc)
Attached patch The test as reftest (deleted) — Splinter Review
Attachment #616640 - Flags: review?(roc)
Attached patch Patch (deleted) — Splinter Review
The right diff this time
Attachment #616639 - Attachment is obsolete: true
Attachment #616639 - Flags: review?(roc)
Attachment #616641 - Flags: review?(roc)
Attached file Test case 2 (deleted) —
Attached file Test case 3 (deleted) —
Attached file Test case 4 (deleted) —
BTW, plaintext is only supposed to affect alignment when it is on a containing block.
Blocks: html5bidi
Attachment #616701 - Attachment mime type: text/plain → text/html
Attachment #616702 - Attachment mime type: text/plain → text/html
Attachment #616703 - Attachment mime type: text/plain → text/html
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: