Closed Bug 229764 Opened 21 years ago Closed 16 years ago

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

Categories

(Core :: Layout: Floats, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: penorman, Unassigned)

References

()

Details

(Keywords: css2, testcase)

Attachments

(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.
Status: UNCONFIRMED → NEW
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 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.
Status: NEW → RESOLVED
Closed: 16 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.

Attachment

General

Creator:
Created:
Updated:
Size: