Closed
Bug 1134206
Opened 10 years ago
Closed 10 years ago
CSS Ruby line spacing adjustment doesn't happen in quirks mode
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla38
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: xmomdo, Assigned: xidorn)
Details
(Keywords: css3)
Attachments
(2 files, 1 obsolete file)
5.25 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
3.78 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20150122214805
Steps to reproduce:
Writing following HTML fragment:
<ul>
<li><ruby><rb>上<rb>手<rt>じよう<rt>ず</ruby>
<li><ruby><rb>旧<rb>金<rb>山<rt>jiù<rt>jīn<rt>shān</ruby>
<li><ruby>東<rb>京<rp>(<rt>とう<rt>きょう<rp>)</ruby>
</ul>
Actual results:
Ruby texts overlap preceding line.
(Maybe, This bug has font-dependence. 'MS PGothic' is baggy, 'Meiryo' is narrowly OK.)
Expected results:
Ruby texts do not overlap precide line.
Reporter | ||
Updated•10 years ago
|
Component: Untriaged → Layout
Keywords: css3
OS: Windows 8.1 → All
Product: Firefox → Core
Hardware: x86_64 → All
Comment 1•10 years ago
|
||
Doesn't this also happen for just blocks? So like this:
<div><ruby><rb>上<rb>手<rt>じよう<rt>ず</ruby></div>
<div><ruby><rb>旧<rb>金<rb>山<rt>jiù<rt>jīn<rt>shān</ruby></div>
<div><ruby>東<rb>京<rp>(<rt>とう<rt>きょう<rp>)</ruby></div>
Assignee | ||
Comment 2•10 years ago
|
||
Interesting that adding <!DOCTYPE html> to the top of the code solves this problem, which means it is a bug in quirk mode I guess.
Assignee | ||
Updated•10 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: CSS Ruby overlaps preceding line on HTML lists → CSS Ruby line spacing adjustment doesn't happen in quirks mode
Assignee | ||
Comment 3•10 years ago
|
||
Assignee: nobody → quanxunzhen
Attachment #8566178 -
Flags: review?(roc)
Assignee | ||
Comment 4•10 years ago
|
||
I guess we probably should move the line spacing adjustment to a virtual method of nsIFrame?
Attachment #8566182 -
Flags: review?(roc)
Assignee | ||
Comment 5•10 years ago
|
||
Add reftest in addition
Attachment #8566182 -
Attachment is obsolete: true
Attachment #8566182 -
Flags: review?(roc)
Attachment #8566203 -
Flags: review?(roc)
Attachment #8566178 -
Flags: review?(roc) → review+
Attachment #8566203 -
Flags: review?(roc) → review+
Assignee | ||
Comment 6•10 years ago
|
||
Assignee | ||
Comment 7•10 years ago
|
||
Comment 8•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/bd2675bc4b96
https://hg.mozilla.org/mozilla-central/rev/69e2817c85e8
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox38:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•