Closed
Bug 231469
Opened 22 years ago
Closed 21 years ago
do not use styles like "width", "height" if "display" = "inline". tested with DIV
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
People
(Reporter: max, Unassigned)
Details
Attachments
(1 file)
|
371 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
<div style="width:400px; height:20px; background-color:green;">zzz</div>
<div style="display:inline; width:400px; height:20px;
background-color:green;">zzz</div>
Why it's examples show different result? Other browsers show equal results...
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Changing product, as I don't think this is Bugzilla related
Component: Testing Suite → Layout: Block and Inline
Product: Bugzilla → Browser
Version: unspecified → Trunk
I've moved this from the Bugzilla product, and am re-assigniing to default component owners
Assignee: zach → nobody
QA Contact: mattyt-bugzilla → core.layout.block-and-inline
This is a simple test case of what I think the reporter (not me) meant)
Our behavior is correct:
http://www.w3.org/TR/CSS21/visudet.html#q4
http://www.w3.org/TR/CSS21/visudet.html#q4
(IE/Windows magically changes inline elements to something like inline-block
when 'width' or 'height' is specified.)
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
then how need write for Mozilla to reach result of IE or Opera in code:
<div style="width:100px;">
<div style="display:inline; width:45px;">aaa</div>
<div style="display:inline; width:45px;">bbb</div>
<div style="display:inline; width:45px;">ccc</div>
<div style="display:inline; width:45px;">ddd</div>
<div style="display:inline; width:45px;">eee</div>
</div>
(like 2 column table)?
I need output some array of elements, which horizontal count depend from width
of the parent object...
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
This is a bug database, not a help list.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago → 22 years ago
Resolution: --- → INVALID
Comment 7•22 years ago
|
||
Note that Opera does the right thing (same as Mozilla) if you use a Strict
DOCTYPE, too.
Updated•21 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 8•21 years ago
|
||
*** This bug has been marked as a duplicate of 50626 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago → 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•