Closed
Bug 284307
Opened 20 years ago
Closed 20 years ago
CSS style "border:1 solid" red fails. Only works if include the 'px'
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 129267
People
(Reporter: jpage, Assigned: bugzilla)
Details
Attachments
(1 file)
|
624 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1 When the style "border: 1 solid red" is used no border is drawn. However if you include the px like this: "border: 1px solid red" the border is drawn correctly. I am not sure if this is a standards issue, but IE will accept it either way. Also Firefox will accept a missing px in the style "border-width:1" so it is inconsistent. Reproducible: Always Steps to Reproduce: 1.Create a web page containing: <div style="border: 1 solid red">Hello world</div> 2.Display the page. Actual Results: no border Expected Results: a 1 pixel red border
Comment 1•20 years ago
|
||
Standards mode requires units. Since you didn't provide a testcase, I'm assuming that you are using a standards mode doctype. But feel free to reopen if you have a testcase.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
I attached an html file showing the doctype and showing that the units requirement (px) is inconsistent.
Comment 3•20 years ago
|
||
You're correct: Firefox is not particularly consistent here; in standards mode it would require units in both cases. The quirks mode behaviour is covered by bug 129267
Comment 4•20 years ago
|
||
I don't really see a point of this bug. Units (eg. "px") *are* required and the fact that sometimes browser accepts value without units is a quirk, which is what you would expect from Quirks mode. If you put the browser in standarts compliance mode, it won't accept unitless numbers I think. *** This bug has been marked as a duplicate of 129267 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•