Closed Bug 131533 Opened 23 years ago Closed 20 years ago

inline elements ignore width and height css definitions

Categories

(Core :: DOM: CSS Object Model, defect)

defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 50626

People

(Reporter: mozilla, Assigned: jst)

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311 BuildID: 2002031104 <b style="height:50px; width:200px; background: green;">EXAMPLE</b> all width an height definitions are ignored unless you explicitly declare the alement "display: block;" Reproducible: Always Steps to Reproduce: 1. create a html page 2. insert <b style="height:50px; width:200px; background: green;">EXAMPLE</b> 3. open the page using mozilla Actual Results: element ignores the width and height definitions Expected Results: element should reflect the width and size as defined in the style-attribute. compare that examples behavior to Internet-Explorer
This is just invalid. see http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-width "width does not apply to non-replaced inline-level elements." IExplorer does it wrong.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
VERIFIED. I believe IE do this right in strict mode, too.
Status: RESOLVED → VERIFIED
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
*** This bug has been marked as a duplicate of 50626 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.