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

RESOLVED DUPLICATE of bug 442043

Status

()

Core
CSS Parsing and Computation
RESOLVED DUPLICATE of bug 442043
9 years ago
9 years ago

People

(Reporter: Masahiro YAMADA, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

9 years ago
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.
(Reporter)

Comment 1

9 years ago
Created attachment 336336 [details]
testcase
(Reporter)

Updated

9 years ago
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

Updated

9 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 442043
You need to log in before you can comment on or make changes to this bug.