Closed Bug 229764 Opened 20 years ago Closed 15 years ago

float with :first-letter causes doubling of text if the stylesheet is set to disabled


(Core :: Layout: Floats, defect)

Not set





(Reporter: penorman, Unassigned)




(Keywords: css2, testcase)


(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/106.2 (KHTML, like Gecko) Safari/100.1
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7a) Gecko/20031230 Firebird/0.7+

When a stylesheet floats the :first-letter of a paragraph and is set to disabled = true, the 
paragraph's text is duplicated. If the stylesheet is then later set to disabled = false, the :first-letter 
psudo-classes do not work correctly. Tests by other people show that this bug is cross-platform.

Reproducible: Always

Steps to Reproduce:
1. Load a page which meets the above conditions
Actual Results:  
The text of the paragraph is duplicated, and selecting is very odd.

Expected Results:  
Rendered as it does with no CSS at all
Worskforme with Windows trunk build 2003-12-28 or so....  Is this a more recent
regression?  Or mac-only?
I'm told the buggy behavior is present on Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) 
Gecko/20031007, which is a older build, and on "linux with a cvs build from 20031230"

Without JavaScript enabled, you don't encounter the bug. I forgot to mention that in the bug report.

As the page breaks with the duplication of content in recent builds two platforms and an older 
Windows build, I marked hardware and os as all
JavaScript must be enabled.
Lovely test case.
Confirmed in 1.5 and nightly, windows and linux.  Good enough for me.
Ever confirmed: true
Present in:
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208
Keywords: testcase
Keywords: css2
QA Contact: core.layout.floats → ian
Incorrect behaviour still exhibited with Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:
1.8a4) Gecko/20040927
Looks a lot like bug 167292
Depends on: 167292
This now WFM. Gression window is, so I assume it was fixed by bug 367650.

I have a reftest ready for checkin.
Closed: 15 years ago
Depends on: 367650
No longer depends on: 167292
Flags: in-testsuite?
Resolution: --- → FIXED
reftest checked in to mozilla-central.
You need to log in before you can comment on or make changes to this bug.