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)
Core
Layout: Text and Fonts
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).
Reporter | ||
Comment 1•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #616581 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 2•13 years ago
|
||
Assignee: nobody → smontagu
Attachment #616639 -
Flags: review?(roc)
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #616640 -
Flags: review?(roc)
Assignee | ||
Comment 4•13 years ago
|
||
The right diff this time
Attachment #616639 -
Attachment is obsolete: true
Attachment #616639 -
Flags: review?(roc)
Attachment #616641 -
Flags: review?(roc)
Reporter | ||
Comment 5•13 years ago
|
||
Reporter | ||
Comment 6•13 years ago
|
||
Reporter | ||
Comment 7•13 years ago
|
||
Reporter | ||
Comment 8•13 years ago
|
||
BTW, plaintext is only supposed to affect alignment when it is on a containing block.
Reporter | ||
Updated•13 years ago
|
Attachment #616701 -
Attachment mime type: text/plain → text/html
Reporter | ||
Updated•13 years ago
|
Attachment #616702 -
Attachment mime type: text/plain → text/html
Reporter | ||
Updated•13 years ago
|
Attachment #616703 -
Attachment mime type: text/plain → text/html
Attachment #616640 -
Flags: review?(roc) → review+
Attachment #616641 -
Flags: review?(roc) → review+
Assignee | ||
Comment 9•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e48d32ee1a5b
https://hg.mozilla.org/integration/mozilla-inbound/rev/15a028a333d2
Flags: in-testsuite+
Target Milestone: --- → mozilla15
Updated•13 years ago
|
Keywords: dev-doc-needed
Comment 10•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e48d32ee1a5b
https://hg.mozilla.org/mozilla-central/rev/15a028a333d2
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 11•12 years ago
|
||
I've added a note in:
https://developer.mozilla.org/en-US/docs/CSS/unicode-bidi
https://developer.mozilla.org/en-US/docs/Firefox_15_for_developers
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•