Bug 102509
| Summary: | Text Autosizing: Upscale small inline images like smileys. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | John Mellor <johnme> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | dbates, timvolodine |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 102504 | ||
| Bug Blocks: | 84186 | ||
John Mellor
When small images are included inline within text that gets autosized, the images aren't currently resized and so end up disproportionately small. Examples of images for which this happens:
- smileys
- sparklines
- icons indicating that clicking a link takes you to an external site
These images tend to either be included using an inline <img>, or via css e.g.:
a.external {
padding-right: 21px;
background: url(external-link.png) right center no-repeat;
}
We should try to scale up these images in proportion to the text autosizing multiplier.
The hardest part may be determining what the maximum size cut-off is at which we stop doing this. Perhaps require that the image height be <= max(font-size, line-height)?
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
John Mellor
See also bug 102504, which includes an example where not scaling a background-image breaks the design, and discusses scaling of background-images.
Daniel Bates
Marking this bug Resolved WontFix because the TEXT_AUTOSIZING feature was removed in <https://trac.webkit.org/changeset/206119> (bug #162167). See bug 84186, comment 32 for more details.