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

RESOLVED FIXED

Status

()

Core
Layout: Floats
RESOLVED FIXED
15 years ago
10 years ago

People

(Reporter: Paul Norman, Unassigned)

Tracking

({css2, testcase})

Trunk
css2, testcase
Points:
---
Bug Flags:
in-testsuite ?

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

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?
(Reporter)

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
(Reporter)

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.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Present in:
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208
Keywords: testcase

Updated

14 years ago
Keywords: css2
QA Contact: core.layout.floats → ian
(Reporter)

Comment 6

14 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
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
Last Resolved: 10 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.