Closed Bug 607235 Opened 14 years ago Closed 14 years ago

[FLOAT] [FIRST-LETTER] Using :first-letter selector in a floated element makes unwanted padding

Categories

(Core :: Layout: Floats, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 385615

People

(Reporter: hunboy, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11

During using float for an element what has :first-letter selector definition, the element gets an unwanted padding at right side

During using zoom Ctrl+ , the weird padding goes away, after restoring or using Ctrl- it won't come back

Maybe this bug related to Bug 13610 . If yes, redirect, please.
similarities: first-letter selector usage, weird padding
difference: the element is floated (not the first-letter)

btw, addig float:left to :first-letter as well, the weird padding goes away at right side of the whole element, but comes in at bottom of floated letter

Reproducible: Always

Steps to Reproduce:
1. crate an element with some text without padding
2. add float:left to the element
3. add :first-letter {font-weight:bold;} to the element.
4. weird padding goes in at right side of the element
Actual Results:  
4. weird padding goes in at right side of the element

Expected Results:  
it should be shown without any padding, if padding value is zero, or correct padding value if that is defined.
Attached file testcase
this sample represents the problem with some html code
This sounds like bug 385615
Attached file valign testcase
This sample for the floated first-letter problem as I marked before, but this one really rather fits to Bug 13610 . Redirect, please, if nessesary.

The simply floated first letter can fit to the word. Really it's not a padding problem, it just fits to the top instead of text-bottom
or text-top? Well then, it should look same as not floated if the font-size is same.
(In reply to comment #3)
> Created attachment 486032 [details]
> valign testcase

Bug 415506.

I'll dupe this to bug 385615, as that is what your original test case is about (font metrics of :first-letter affecting the width of the floated parent).
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: