Closed Bug 453123 Opened 16 years ago Closed 16 years ago

Calculation of width of float uses width of :first-letter for all letters

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 442043

People

(Reporter: masa141421356, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-KS; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/20080829063055 Minefield/3.1a2pre

Calculation of width of float uses font metrics of :first-letter for all letters off its content.
caclulation of width other than :first-letter should use float's font metrics.


Reproducible: Always

Steps to Reproduce:
1.Show testcase
2.

Actual Results:  
All lines that has same text should be displayed widh same width.

Expected Results:  
Red boxed line and Blue boxed line has incorrect width.
But, at red boxed line, when after applying :hover, its width will be correct.

Green boxed lines uses only float, not using :first-letter
Red boxed lines uses float and :first-letter. And, additionally it uses :hover that causes reflow of text.
Blue boxed lines also uses float and :first-letter, but not uses :hover.
Attached file testcase
Summary: Calculation of width of should apply width of :first-letter for ONLY :first-letter characters. → Calculation of width of float uses width of :first-letter for all letters
Status: UNCONFIRMED → RESOLVED
Closed: 16 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: