the use of first-letter on an the button element when its display is set to block fails

RESOLVED FIXED

Status

()

Core
Layout: Form Controls
RESOLVED FIXED
14 years ago
11 years ago

People

(Reporter: diades, Unassigned)

Tracking

({testcase})

Trunk
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1

<style type="text/css">
button{display:block)
button:first-letter{color:#ff0000;background-color:transparent;text-decoration:none;}
....
<button name="fred" type="submit">Fred</button>
The above (a shortened version) renders correctly in IE & Opera nut not Moz
1.3b, Firebird 0.61 or Netscape 7.1/2

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Form controls, but given that <button> is currently a replaced element in
Mozilla our behavior is correct....
Assignee: general → form
Component: DOM: CSSOM → Layout: Form Controls
OS: Windows 2000 → All
Hardware: PC → All

Comment 2

12 years ago
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8b4) Gecko/20050905
Firefox/1.0+ ID:2005090518

Confirmed with the above nightly.  Like the poster in Comment #1, I'm not sure
this is a bug, but I've created a testcase for the behavior.  Opera and IE do
indeed display at the original reporter expected.
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 3

12 years ago
Created attachment 195025 [details]
Testcase for this bug

Updated

12 years ago
Flags: testcase?

Comment 4

12 years ago
Bug 51767 fixes this bug.
Depends on: 51767
Flags: testcase?
Keywords: testcase
Fixed by bug 51767. Tested with:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060113 Firefox/1.6a1
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.