Closed Bug 71028 Opened 25 years ago Closed 21 years ago

CSS Width ignored with "display: inline"

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 50626

People

(Reporter: bischoff, Assigned: pierre)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 0.9) Gecko/20010305 BuildID: 2001030505 The test page features two paragraphs. They're identical, except that the second is set to "display: inline" (while the first is "display: block", the default). The second paragraph ignores its assigned width. Reproducible: Always Steps to Reproduce: 1. Load the page 2. View the two paragraphs. 3. Notice that the two paragraphs' CSS rules are identical, except that the second one is assigned "display: inline". And, this seems to cause the second paragraph to ignore its assigned width. Actual Results: The second paragraph is given width of 100%. Expected Results: The second paragraph should have width of 50%, as assigned.
All the above is true but it is *required* CSS behaviour. " 'width' This property does not apply to non-replaced inline-level elements. " http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-width
resolving INVALID -- the width property does not apply to non-replaced inline elements per the CSS2 spec.
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
VERIFIED that just because IE does it doesn't mean it is not INVALID
Status: RESOLVED → VERIFIED
*** Bug 74422 has been marked as a duplicate of this bug. ***
*** Bug 105903 has been marked as a duplicate of this bug. ***
*** Bug 151016 has been marked as a duplicate of this bug. ***
*** Bug 208256 has been marked as a duplicate of this bug. ***
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
*** This bug has been marked as a duplicate of 50626 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago → 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.