[Webkit-unassigned] [Bug 102559] New: Text Autosizing: Ensure line-height is >= font-size, when autosizing single-line text
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 16 14:05:56 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=102559
Summary: Text Autosizing: Ensure line-height is >= font-size,
when autosizing single-line text
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
URL: http://www.flickr.com/tour/#section=share-your-photos
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: johnme at chromium.org
CC: timvolodine at chromium.org
Blocks: 84186
Created an attachment (id=174757)
--> (https://bugs.webkit.org/attachment.cgi?id=174757&action=review)
Screenshot of flickr.com heading
Some sites set the line-height smaller than the font-size on single-line headings, as an alternative way of reducing the heading's top/bottom margins.
When these single-line headings are autosized, if they wrap onto more than one line the line spacing between the lines will be insufficient.
For example the "Share your photos with your friends and family" heading on the attached screenshot has font-size:30px but line-height:20px, hence the top of the 'f' risks overlapping the bottom of the 'y' (much worse examples are possible!).
Text Autosizing should make sure that whenever single-line text is made to wrap onto multiple lines, the intra-line spacing is always at least ~1em (ideally this would be done without affecting the margins implied by the line height).
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list