Closed Bug 229425 Opened 21 years ago Closed 19 years ago

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

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: diades, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

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
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
Attached file Testcase for this bug
Flags: testcase?
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
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: