Closed
Bug 1138527
Opened 9 years ago
Closed 9 years ago
when font inflation is enabled, CSS ruby should not be inflated differently from the base text
Categories
(Core :: Layout: Text and Fonts, defect)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: jfkthame, Assigned: xidorn)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
2.24 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
2.52 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
Currently, we apply font inflation calculations to ruby text independently of the calculation for the base text. This means we're liable to inflate the ruby annotation much more than the base, and thereby lose the expected size contrast and mess up the layout. I think that for <rt>, we should inflate only as much as the inflation being applied to the base text, even though this will typically leave the ruby text smaller than the minimum size being applied to normal text in the same inflation container.
Reporter | ||
Comment 1•9 years ago
|
||
Here's a reftest that currently fails because we inflate the ruby text independently of its base text.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → quanxunzhen
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8571645 -
Flags: review?(roc)
Assignee | ||
Comment 3•9 years ago
|
||
Identical to jfkthame's patch, except the order in reftest.list and removal of "fails". Thanks for the great reftest, jfkthame.
Attachment #8571435 -
Attachment is obsolete: true
Attachment #8571646 -
Flags: review?(roc)
Assignee | ||
Updated•9 years ago
|
Version: unspecified → Trunk
Attachment #8571645 -
Flags: review?(roc) → review+
Attachment #8571646 -
Flags: review?(roc) → review+
Assignee | ||
Comment 4•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=6afcb2625bce
Assignee | ||
Comment 5•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/08e06ab7702a https://hg.mozilla.org/integration/mozilla-inbound/rev/2330bb9f7da0
Is it really necessary to modify that code, or should you instead be making sure that ruby annotation containers don't end up being a font inflation container?
Assignee | ||
Comment 7•9 years ago
|
||
I don't think ruby annotation containers are ever font inflation container. [1] (Though some code there doesn't use a proper name.) [1] https://dxr.mozilla.org/mozilla-central/source/layout/generic/nsFrame.cpp#441
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/08e06ab7702a https://hg.mozilla.org/mozilla-central/rev/2330bb9f7da0
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•