Closed Bug 60508 Opened 26 years ago Closed 25 years ago

[DUP]A tables with 100% width cell will not display other cells in same row

Categories

(Core :: Layout: Tables, defect, P3)

x86
Windows NT
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: jmrozak, Assigned: karnaze)

Details

Attachments

(2 files)

<!-- This web page should display several lines of (drop-down combo and command button) pairs for a number of names. It does so in NN 4.73 and IE 5.0. It doesn't in M18. With this bug, I can't advise my customers that Mozilla (and,yes, NN 6) is acceptable for this web portal application --> <html> <head> <title>WeServeHomes Provider Website</title> <STYLE type="text/css"> BODY { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; MARGIN: 0px; } BODY.popup { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; MARGIN: 10px; } A { COLOR: #000000; } A.white { COLOR: #FFFFFF; } A.none { COLOR: #000000; TEXT-DECORATION: none; } TD { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; } TH { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; TEXT-ALIGN: left; } .topBanner { BACKGROUND-COLOR: #CCCCCC; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; } .mainMenu { BACKGROUND-COLOR: #DDDDDD; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; TEXT-DECORATION: none; } .mainMenuSelected { BACKGROUND-COLOR: #AAAAAA; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; TEXT-DECORATION: none; } .bottomNav { BACKGROUND-COLOR: #CCCCCC; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; TEXT-DECORATION: none; } .bottomBanner { BACKGROUND-COLOR: #000000; COLOR: #FFFFFF; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; TEXT-DECORATION: none; } .title { COLOR: #FF0000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; } .smallR { COLOR: #FF0000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; } .small { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; } .tiny { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; } .tinyR { COLOR: #FF0000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; } .tinyBlue { COLOR: #6666CC; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; } .tinyBlueLink { COLOR: #0000FF; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; } .hours { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; } .hoursR { COLOR: #FF0000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; } .daytime { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; } .hidden { BACKGROUND-COLOR: #FFFFFF; COLOR: #FFFFFF; } </STYLE> <SCRIPT type="text/javascript"> <!-- window.setTimeout("Alter_Callout()", 500); function Alter_Callout() { if (navigator.userAgent.indexOf("Mozilla") >= 0) { if (navigator.userAgent.indexOf("MSIE") >= 0) { w = window.top.frames.item("topBanner"); if (w == null) { window.setTimeout("Alter_Callout()", 500); return; } w.imgPage.src = "/images/MaintainResources.gif"; w.pathed.innerHTML = "&nbsp;Home > Blue Air > Maintain Resources"; } else { top.topBanner.location.reload(true); } } } //--> </SCRIPT> <style type=text/css> .btnWidth { width: 60px; font-size: 8pt; } </style> </head> <body onload="document.forms[0].action0.focus()"> <table width="100%" border="0"> <tr> <th class="title" colspan="2"> &nbsp;<br> Maintain Resources <br> </th> </tr> <tr> <td> &nbsp;&nbsp;&nbsp; </td> <td> <table width="100%" border="0"> <tr> <th class="small"> &nbsp;<br> A resource provides services to your customers. </th> </tr> <tr> <td class="small"> A resource can be an individual worker, a crew, a salesperson, a technician, an inspector, or a truck. </td> </tr> </table> </td> </tr> </table> <form name=frmMaintainResources action="MaintainResources.jsp?p=5813611C-1796-11D4-8184-00508B94D63A" method="post"> <input type="hidden" name="keyCount" value="3"> <table width="100%" border="0"> <tr> <td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> <td class="small"> <table width="100%" border="0"> <tr> <td align="right" nowrap width="100%"> Alex </td> <td> &nbsp;&nbsp;&nbsp; </td> <td> <table align="right" border="0"> <tr> <td> <input type="hidden" name="resourceKey0" value="54645576-B4E9-11D4-A7F3-0001031FD8C3"> <select name="action0" > <option value="title" selected>Choose an action&nbsp;&nbsp;&nbsp;&nbsp;</option> <option value="edit">Edit Resource</option> <option value="delete">Delete Resource</option> </select> </td> <td> <input type="submit" name="submit0" value="Go!" width="60" class="btnWidth"> </td> </tr> </table> </td> </tr> <tr> <td align="right" nowrap width="100%"> Bob </td> <td> &nbsp;&nbsp;&nbsp; </td> <td> <table align="right" border="0"> <tr> <td> <input type="hidden" name="resourceKey1" value="54645577-B4E9-11D4-A7F3-0001031FD8C3"> <select name="action1" > <option value="title" selected>Choose an action&nbsp;&nbsp;&nbsp;&nbsp;</option> <option value="edit">Edit Resource</option> <option value="delete">Delete Resource</option> </select> </td> <td> <input type="submit" name="submit1" value="Go!" width="60" class="btnWidth"> </td> </tr> </table> </td> </tr> <tr> <td align="right" nowrap width="100%"> Carl </td> <td> &nbsp;&nbsp;&nbsp; </td> <td> <table align="right" border="0"> <tr> <td> <input type="hidden" name="resourceKey2" value="54645575-B4E9-11D4-A7F3-0001031FD8C3"> <select name="action2" > <option value="title" selected>Choose an action&nbsp;&nbsp;&nbsp;&nbsp;</option> <option value="edit">Edit Resource</option> <option value="delete">Delete Resource</option> </select> </td> <td> <input type="submit" name="submit2" value="Go!" width="60" class="btnWidth"> </td> </tr> </table> </td> </tr> <tr> <td align="right" nowrap width="100%"> &nbsp; </td> <td> &nbsp;&nbsp;&nbsp; </td> <td> <table align="right" border="0"> <tr> <td align="right"> Add New Resource </td> <td> <input type="submit" name="btnAdd" value="Go!" width="60" class="btnWidth"> </td> </tr> </table> </td> </tr> <tr> <td align="right" nowrap width="100%"> &nbsp; </td> <td> &nbsp;&nbsp;&nbsp; </td> <td> <table align="right" border="0"> <tr> <td align="right"> Resource Overview </td> <td> <input type="submit" name="btnOverview" value="Go!" width="60" class="btnWidth"> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </form> <table align="right" border="0"> <tr> <td align="right" class="tinyblue"> To edit or delete a resource, select an action<br>from its drop down list, then click <b>Go!</b> next to that resource. <p> To add a new resource, click <b>Go!</b> next to Add New Resource. <p> To see resource totals for services performed and available timeslots,<br>click <b>Go!</b> next to Resource Overview.<br> </td> </tr> </table> </body> </html>
I see the problem with linux trunk build 2000-11-16-08 Attaching a minimal testcase. Note on the testcase: the problem goes away if either the align="right" on the inner table or the width="100%" on the first td in the outer table is removed.
Hmmm... looking at Boris' testcase, the problem really is that you have a cell with a declared 100% width and the rest of the row cells that get clipped as a result. Revising Summary. Old Summary: "Drop-down and Command buttons don't display on this page." This is a tables issue (->tables) and not a html form control issue since you could put anything in and it still gets clipped. This is also a dupe that I can not find right now...
Assignee: rods → karnaze
URL: HTML sample included in Description f...
Severity: critical → normal
Component: HTML Form Controls → HTMLTables
QA Contact: bsharma → chrisd
Summary: Drop-down and Command buttons don't display on this page. → [DUP]A tables with 100% width cell will not display other cells in same row
James, dup of bug 19591? Fabian.
No the real problem is that this is bad markup. Think of it like this... You create a table with 2 cells. One cell you declare as 100% of the table width. What should happen with the 2nd cell? Right now mozilla is clipping the other cell. Other browsers may render this by ignoring the 100% and put in the 2nd cell. For me this should be marked as INVALID or WONTFIX because it is just wrong or WFM because mozilla is really probably doing what is "right".
Marking INVALID. Bad HTML. Need I say more?
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Keyser: Depends. How common is thie bad markup? If it is very common then it is something we'll have to deal with. If it is not common, then we can do what we want. It's not always an easy decision.
QA contact update
QA Contact: chrisd → amar
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: