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




15 years ago
11 years ago


(Reporter: penorman, Unassigned)


({css2, testcase})

css2, testcase
Bug Flags:
in-testsuite ?

Firefox Tracking Flags

(Not tracked)




(1 attachment)



15 years ago
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?

Comment 2

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

Comment 3

15 years ago
Created attachment 138403 [details]
A testcase exhibiting the problem described written in XHTML 1.1

JavaScript must be enabled.

Comment 4

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


15 years ago
Keywords: css2
QA Contact: core.layout.floats → ian

Comment 6

15 years ago
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 http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2007-02-28+08%3A00&maxdate=2007-03-01+10%3A00&cvsroot=%2Fcvsroot, so I assume it was fixed by bug 367650.

I have a reftest ready for checkin.
Last Resolved: 11 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.