Closed
Bug 970891
Opened 11 years ago
Closed 11 years ago
Whitespace does not fall through font stack when between inline elements styled with font-*
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: nick.evans3976, Assigned: jfkthame)
References
Details
(Keywords: regression)
Attachments
(5 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release)
Build ID: 20140127194636
Steps to reproduce:
1. Open test.html with test.woff in the same directory.
Actual results:
Whitespace appears as .notdef if:
- The first font on the stack does not have a space glyph, e.g. a symbol font.
- The whitespace is between inline elements.
- Those inline elements are styled with font-* properties that are not set to "normal", e.g. font-style: italic.
Expected results:
The whitespace should fall through the font stack and appear as a space glyph from a lower font. This way the space width will match the letter glyphs. (If the symbol font imposes a space glyph then the space width will not match the letter glyphs.)
Reporter | ||
Comment 1•11 years ago
|
||
Reporter | ||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
Regression window(m-i)
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/511078d51f71
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0a1) Gecko/20120105 Firefox/12.0a1 ID:20120105035122
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/c0b62edd2917
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0a1) Gecko/20120105 Firefox/12.0a1 ID:20120105041225
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=511078d51f71&tochange=c0b62edd2917
Regressed by: bug 703100
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 4•11 years ago
|
||
This arises because gfxFontGroup::MakeSpaceTextRun (rashly) assumes that the primary font in the font-group's list can be used for <space>; that's not necessarily true.
Attachment #8374089 -
Flags: review?(roc)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Comment on attachment 8374089 [details] [diff] [review]
don't assume the primary font will always support the <space> character - fall back down the font stack if necessary.
Review of attachment 8374089 [details] [diff] [review]:
-----------------------------------------------------------------
Reftest please!
Attachment #8374089 -
Flags: review?(roc) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8374428 -
Flags: review?(roc)
Reporter | ||
Comment 7•11 years ago
|
||
Did this patch slip through the net? (Please excuse the mixed metaphors.)
This issue remains in Nightly 30.0a1 (2014-02-23).
Assignee | ||
Comment 8•11 years ago
|
||
I was intending to land the patch and test together, once the test is reviewed - Roc, ping?
Reporter | ||
Comment 9•11 years ago
|
||
Jonathan, these messages don't seem to be reaching Robert. Is there another way you can contact him?
Comment 10•11 years ago
|
||
(In reply to Jonathan Kew (:jfkthame) from comment #8)
> I was intending to land the patch and test together, once the test is
> reviewed - Roc, ping?
Sorry, spam
Flags: needinfo?(roc)
Attachment #8374428 -
Flags: review?(roc) → review+
Flags: needinfo?(roc)
Assignee | ||
Comment 11•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/75d3146ac0d3
https://hg.mozilla.org/integration/mozilla-inbound/rev/e7c4304d45d7
Target Milestone: --- → mozilla30
Comment 12•11 years ago
|
||
Backed out for Android reftest failures.
https://hg.mozilla.org/integration/mozilla-inbound/rev/ff0e1abb0b06
https://tbpl.mozilla.org/php/getParsedLog.php?id=35725469&tree=Mozilla-Inbound
Comment 13•11 years ago
|
||
And linux.
https://tbpl.mozilla.org/php/getParsedLog.php?id=35726388&tree=Mozilla-Inbound
Please run this through Try before pushing again.
Assignee | ||
Comment 14•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1c83d1306f2a
https://hg.mozilla.org/mozilla-central/rev/4e6a6fa1e025
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•