Closed Bug 260554 Opened 20 years ago Closed 20 years ago

style="width:40px;overflow:hidden;" doesn't work as (what I) expected

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: vincent.pennec, Assigned: dbaron)

References

()

Details

(Keywords: testcase)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 <span style="width:40px;overflow:hidden;white-space:nowrap;border:1px solid black">some long text here</span> displays [some long text here] Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: displays only the very first letters because of the style="width:40px" statement IE 6.0 displays it as expected
This doesn't seem to be the case for inline elements... 'width' doesn't apply to them. However, if you encountered this on block level elements, Mozilla is correct and this bug is most likely invalid. Could you use "Create a New Attachment" to attach a demonstration?
Invalid as written. Width does not apply to inline span elements. And this testcase works fine if the span is set to display: block.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
indeed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.