Closed
Bug 1111944
Opened 10 years ago
Closed 10 years ago
number of ordered list (<ol>) should support vertical writing mode layout
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: m_kato, Assigned: jfkthame)
References
(Blocks 1 open bug, )
Details
Attachments
(3 files, 1 obsolete file)
(deleted),
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
- Step
Open the following data URL
data:text/html,<div style="writing-mode: vertical-rl;"><ol><li>ABC</li></ol></div>
- Result
number of ordered list doesn't use vertical layout
- Expected Result
number of ordered list shoulder use vertical layout
Comment 1•10 years ago
|
||
Currently list item markers are drawn by nsLayoutUtils::DrawString, not gfxTextRun. We probably need to make DrawString vertical-capable (we will also want that at some point for page headers and footers), but see also bug 397294.
Assignee | ||
Comment 2•10 years ago
|
||
Yes, I was thinking about this recently too. The effect is more fun if you have item markers with varying lengths... :)
data:text/html,<div style="writing-mode: vertical-rl;"><ol style="list-style-type:lower-roman"><li>ABC</li><li>ABC</li><li>ABC</li><li>ABC</li><li>ABC</li><li>ABC</li><li>ABC</li><li>ABC</li><li>ABC</li><li>ABC</li></ol></div>
Assignee | ||
Updated•10 years ago
|
Blocks: enable-writing-mode-dev
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Simon Montagu :smontagu from comment #1)
> Currently list item markers are drawn by nsLayoutUtils::DrawString, not
> gfxTextRun. We probably need to make DrawString vertical-capable (we will
> also want that at some point for page headers and footers), but see also bug
> 397294.
Using gfxTextRun directly can't work, because the marker may involve multiple bidi runs; so we still need to go through something like nsBidiPresUtils::ProcessText to resolve bidi and generate multiple runs if necessary.
I think making nsLayoutUtils::DrawString handle vertical text is probably the right way forward here.
Assignee | ||
Comment 4•10 years ago
|
||
This seems to work so far, though I won't be surprised if something more is needed as we test this from the various call-sites.
Attachment #8539285 -
Flags: review?(smontagu)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8539286 -
Flags: review?(smontagu)
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8539291 -
Flags: review?(smontagu)
Assignee | ||
Comment 7•10 years ago
|
||
Hmm, tryserver says the reftest fails on most platforms. :( Looks like this may be primarily due to bad line-spacing metrics of the fallback CJK font that's getting used. Need to look into that anyway for some other bugs, too...
Updated•10 years ago
|
Attachment #8539285 -
Flags: review?(smontagu) → review+
Updated•10 years ago
|
Attachment #8539286 -
Flags: review?(smontagu) → review+
Assignee | ||
Comment 8•10 years ago
|
||
Updated reftest slightly for better robustness. With the font metrics patches from bug 1090329, bug 1095334 and bug 1115916, this passes as expected. https://treeherder.mozilla.org/#/jobs?repo=try&revision=15dd7ce9867b
Attachment #8543174 -
Flags: review?(smontagu)
Assignee | ||
Updated•10 years ago
|
Attachment #8539291 -
Attachment is obsolete: true
Attachment #8539291 -
Flags: review?(smontagu)
Updated•10 years ago
|
Attachment #8543174 -
Flags: review?(smontagu) → review+
Assignee | ||
Comment 9•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/646e58995d53
https://hg.mozilla.org/integration/mozilla-inbound/rev/603b4a6ccd6a
https://hg.mozilla.org/integration/mozilla-inbound/rev/d3bbe13bbd08
Target Milestone: --- → mozilla37
https://hg.mozilla.org/mozilla-central/rev/646e58995d53
https://hg.mozilla.org/mozilla-central/rev/603b4a6ccd6a
https://hg.mozilla.org/mozilla-central/rev/d3bbe13bbd08
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•