Closed
Bug 288248
Opened 20 years ago
Closed 20 years ago
css shorthand "border" does not work
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: i_am_ed, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
css border properties like border-style, border-width, border-color works as
usual but shorthand "border" (specified in css2 standard) does not work.
That is css style defined as
table {border-width: 2; border-style: solid; border-color:lightgrey} - works
but defined as
table {border: 2 solid lightgrey} - does not
Reproducible: Always
Steps to Reproduce:
1.Look into html page source of specified url.
2.
3.
Expected Results:
in according to css2 standard both style definition have to workYour code doesn't specify any units on the length so it is invalid and Firefox is right to ignore it. Having said that the page is in quirks mode and FF does accept a unitless border-width with no problems, perhaps its just a case of not knowing whether the unitless number is an invalid width or an invalid colour, moving to Core so someone can decide if this is deliberate or not. ->Core
Component: General → Style System (CSS)
Product: Firefox → Core
Version: unspecified → Trunk
Comment 2•20 years ago
|
||
There's no way to do the unitless thing inside shorthands without screwing up, so this is invalid. Things are working exactly as designed. fwiw, leaving CSS bugs assigned to Blake isn't a good way to get them noticed... ;)
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•