Closed
Bug 504812
Opened 16 years ago
Closed 16 years ago
A Class with a number at the start of the class name does not get applied.
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: steven.donnelly, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
If you create a new class in a css file with a number at the start of its name it does not get applied to the form when used. This has only been seen on Vista, it works fine on other operating systems.
E.G
3slfontgraybox (does not work)
fontgraybox (does work)
Reproducible: Always
Steps to Reproduce:
1. Add a Class with a number at the start of the class name.
.3slfontgreybox {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
background-color: #DDDDDD;
}
2. Update your HTML file to use the class (Input text area).
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<LINK HREF="test.css" REL="stylesheet" TYPE="text/css">
</head>
<body>
<table align="center" style="width: 300px;">
<tr>
<td>Test1:</td>
<td widht="200"><input type="text" class="3slfontgreybox" id="itype" name="itype" value="" READONLY /></td>
</tr>
</table>
</body>
</html>
3. Open the web page in Firefox on a Vista Platform.
Actual Results:
You get the form area displayed but the class is not applied to the input text area.
Expected Results:
The input text element should have applied the class and the background should have been gray.
Reporter | ||
Updated•16 years ago
|
Flags: blocking-firefox3.6?
Version: unspecified → Trunk
Comment 1•16 years ago
|
||
Class names cannot start with numbers. The background is gray on most platforms because of the readonly attribute. The default styling for readonly fields is different in Vista.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Flags: blocking-firefox3.6?
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•