Closed Bug 877955 Opened 11 years ago Closed 11 years ago

Indents which are created from nowhere

Categories

(Core :: Layout: Block and Inline, defect)

21 Branch
x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 362880

People

(Reporter: vmalikov, Unassigned)

Details

Attachments

(1 file)

Attached file bug.html
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0 (Beta/Release)
Build ID: 20130511120803

Steps to reproduce:

I tried to make small letters in the words with the first capital letter. This words should be in links which as displayed as a block elements. Also, they should stay close to each other, that's why I displayed parental elements like tabular. Between links should be content ">"


Actual results:

There are odd indents appeared in the links. They're look like "padding-right" in CSS 


Expected results:

This indents shouldn't be there, like in other browsers.
Attachment #756351 - Attachment mime type: text/plain → text/html
The issue is that the shrink-wrap size is computed when all the text has the first-letter style.

You may want to try "text-transform: capitalize" instead of simulating it, though...
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Component: CSS Parsing and Computation → Layout: Block and Inline
Resolution: --- → DUPLICATE
(In reply to Boris Zbarsky (:bz) from comment #1)
> The issue is that the shrink-wrap size is computed when all the text has the
> first-letter style.
> 
> You may want to try "text-transform: capitalize" instead of simulating it,
> though...
> 
> *** This bug has been marked as a duplicate of bug 362880 ***

It would be great solution but it doesn't work in many browsers (including Mozilla).
Oh, because your input data has to be all-uppercase, not all-lowercase?  "capitalize" will uppercase the first letter only but it won't lowercase anything.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: