Colgroup HTML Tag Not Working As Expected - Bugzilla@Mozilla

Copy Summary▾ View ▾ Closed Bug 414953 Opened 17 years ago Closed 17 years ago colgroup HTML tag not working as expected * Summary: colgroup HTML tag not working as expected Product: Core See Open Bugs in This Product File New Bug in This Product Watch This Product Component: Layout See Open Bugs in This Component Recently Fixed Bugs in This Component File New Bug in This Component Watch This Component Version: unspecified Platform: x86 Windows XP Type: defect Priority: Not set Severity: major Points: --- Status: RESOLVED DUPLICATE of bug 915 Status: RESOLVED DUPLICATE of Mark as Duplicate Mark as Assigned Milestone: --- Iteration: --- Project Flags:
a11y-review ---
Performance Impact ---
Webcompat Score ---
Webcompat Priority ---
Accessibility Severity ---
Tracking Flags:
Tracking Status
relnote-firefox ---
thunderbird_esr115 --- ---
thunderbird_esr128 --- ---
firefox-esr115 --- ---
firefox-esr128 --- ---
firefox133 --- ---
firefox134 --- ---
firefox135 --- ---
Assignee: Unassigned Assignee: Reset Assignee to default Mentors: --- QA Contact: Reset QA Contact to default Reporter: mark_e_martin Triage Owner: dholbert CC: 3 people Depends on: --- Blocks: --- Regressions: --- Regressed by: --- URL: w3schools.com/tags/tag_colgroup.asp See Also: --- Alias: --- Keywords: --- Whiteboard: --- QA Whiteboard: --- Has STR: --- Change Request: --- Votes: 0 Bug Flags:
behind-pref
firefox-backlog
sec-bounty ?
sec-bounty-hof
in-qa-testsuite
in-testsuite
qe-verify
Signature: None This bug is publicly visible. Bottom ↓ Tags ▾ Timeline ▾ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3pre) Gecko/2008012904 Minefield/3.0b3pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3pre) Gecko/2008012904 Minefield/3.0b3pre Via the above URL, the text in the first 3 boxes should produce 3 red letters. They do not in the current build. Here are a couple more sample links to show the problem. http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/colgroupEX1.htm http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/colgroupEX2.htm Reproducible: Always Steps to Reproduce: 1. Place the following code into an HTML page. <table border="1"> <colgroup span="3" style="color:#FF0000;"> </colgroup> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> </tr> </table> Now the first 3 numbers should be red. They are not. Actual Results: The first 3 columns should contain red text. Expected Results: They do not turn red. It's a beta build. Something might have glitched in the build or what not. I figured I'd point it out so it can get on the "fix-it" charts. It's "supposed" to work so I set the severity to major. Did it work in previous beta builds? What about in 2.0.0.x?Component: General → LayoutProduct: Firefox → CoreQA Contact: general → layout No, it is not supposed to work, per the CSS 2.1 specs. only a limited number of properties can be applied to the col and colgroup elements http://www.w3.org/TR/CSS21/tables.html#columns If your bugreport means 'support the color property for colgroup', then this bug is INVALID. Additionally, HMTL 4 points to align attribute for col and colgroup http://www.w3.org/TR/html401/struct/tables.html#h-11.2.4 This is handled in bug 915. (In reply to comment #2) > No, it is not supposed to work, per the CSS 2.1 specs. > only a limited number of properties can be applied to the col and colgroup > elements > http://www.w3.org/TR/CSS21/tables.html#columns > If your bugreport means 'support the color property for colgroup', > then this bug is INVALID. > > Additionally, HMTL 4 points to align attribute for col and colgroup > http://www.w3.org/TR/html401/struct/tables.html#h-11.2.4 > This is handled in bug 915. > If you read the w3.org statement what it says is "if both row and cell are set to transparent" What that means is if a... Higher leveled item is set with a non-transparent property, it will not show the col level property. This is part of the layering architecture used in table layout design. Page < Table < Colgroup < Col < Rowgroup < Row < Cell All are assumed "transparent" and if a higher order element specifies a change, that takes precedence over the lower level elements attributes so, of course, if Row or Cell or Rowgroup (not directly stated in THAT link but there are only 3 "named" rowgroups -- THEAD, TFOOT, TBODY)... As to your reference to the HTML401 -- look at the "attributes defined elsewhere" -- note that "style" is listed there. That means both col and colgroup support inline style syntax, according to the HTML 4.01 spec and it works this way in at least IE. Thus your "no it's not..." is in correct. It is/was/should be supported according to the published spec. rowgroup and row support are there -- colgroup and col are missing. Whether it did or did not previously, I don't know and I've enough other projects I'm working on that I really can't take the time to go back and figure out how to get 2.x to load or uninstall the beta and try out 2.x or whatever it'd take. The sample code I provided can be put into any text editor, saved off to a simple "test.html" file and viewed from more than 1 browser or version of a browser to see how it works. I did take the time to test it on a far more complex test.html (for rowgroup, etc...). It's a plug ugly table but tests out a few different attribute support things... Just 'see what does/doesn't work basic HTML/CSS code flag testing.. ---- <HTML> <HEAD> </HEAD> <BODY> This example is a boatload of different tests for complex table architecture support. <table frame="border" border="5" rules="groups"> <colgroup span="3" style="background: #222222; color:skyblue;"> <col width="150px" align="center" valign="top"></col> <col width="120px" align="justify" valign="middle"></col> <col width="200px" valign="bottom" bgcolor="green"></col> </colgroup> <col width="50px" align="right" style="background:blue; color:pink"></col> <thead bgcolor="orange"> <tr> <th scope="colgroup"> First </th> <th> Second </th> <th> Third </th> <th scope="col"> Fourth </th> </tr> </thead> <tfoot style="border: 8px double orange"> <tr align="left" valign="top"> <td style="text-align: justify">this is tfooter stuff. It should be justified but I don't see it working that way. Maybe a bit more text might do it... Yup!</td> <td>2 is two! What?</td> <td bgcolor="pink">3 is three</td> <td>4 is four -- in the footer</td> </tr> <tr> <td colspan="4"> Seeing how this handles the TFOOT structure. </td> </tr> <tr> <td colspan="2"> Another site seeing test.</td> <td colspan="2"> and an additional portion to the test. </td> </tr> </tfoot> <tbody style="border:8px dashed yellow"> <tr> <td style="color:orange">1 is one</td> <td>2 is two</td> <td>3 is three</td> <td>4 is four</td> </tr> <tr> <td>1 is one</td> <td>2 is two</td> <td>3 is three</td> <td>4 is four</td> </tr> <tr> <td>1 is one</td> <td>2 is two! What? No it's not! It's 3 minus one or four minus 2 or ... Ohhh... isn't that just 2? Yeah I guess so!</td> <td>3 is three</td> <td>4 is four -- one two three and four -- let us force line wrap to see how valign works.</td> </tr> </table> </BODY> </HTML> (In reply to comment #3) > (In reply to comment #2) > > No, it is not supposed to work, per the CSS 2.1 specs. > > only a limited number of properties can be applied to the col and colgroup > > elements > > http://www.w3.org/TR/CSS21/tables.html#columns > > If your bugreport means 'support the color property for colgroup', > > then this bug is INVALID. > > > > Additionally, HMTL 4 points to align attribute for col and colgroup > > http://www.w3.org/TR/html401/struct/tables.html#h-11.2.4 > > This is handled in bug 915. > > > If you read the w3.org statement what it says is "if both row and cell are set > to transparent" What that means is if a... Higher leveled item is set with a > non-transparent property, it will not show the col level property. This is > part of the layering architecture used in table layout design. > > Page < Table < Colgroup < Col < Rowgroup < Row < Cell This applies to background colours, width. ... > As to your reference to the HTML401 -- look at the "attributes defined > elsewhere" -- note that "style" is listed there. That means both col and > colgroup support inline style syntax, according to the HTML 4.01 spec and it > works this way in at least IE. But CSS 2.1 explicitly mentions 4, and only 4, style properties that apply to col/colgroup (see link above in comment 2). MS IE bends the specs in this case (color, font-size, -style, -weight, etc). HTML 4 also mentions the align attribute, which is not or badly supported in most browsers, including Gecko (as noted above, bug 915; no need to comment in that bug, the issues are known and understood, thank you). --- PS In the future, please use the attachment feature of a bug report to attach test cases, it is much easier to review.Status: UNCONFIRMED → RESOLVEDClosed: 17 years agoResolution: --- → DUPLICATE (In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #2) > > > No, it is not supposed to work, per the CSS 2.1 specs. > > > only a limited number of properties can be applied to the col and colgroup > > > elements > > > http://www.w3.org/TR/CSS21/tables.html#columns > > > If your bugreport means 'support the color property for colgroup', > > > then this bug is INVALID. > > > > > > Additionally, HMTL 4 points to align attribute for col and colgroup > > > http://www.w3.org/TR/html401/struct/tables.html#h-11.2.4 > > > This is handled in bug 915. > > > > > If you read the w3.org statement what it says is "if both row and cell are set > > to transparent" What that means is if a... Higher leveled item is set with a > > non-transparent property, it will not show the col level property. This is > > part of the layering architecture used in table layout design. > > > > Page < Table < Colgroup < Col < Rowgroup < Row < Cell > > This applies to background colours, width. > ... > > As to your reference to the HTML401 -- look at the "attributes defined > > elsewhere" -- note that "style" is listed there. That means both col and > > colgroup support inline style syntax, according to the HTML 4.01 spec and it > > works this way in at least IE. > > But CSS 2.1 explicitly mentions 4, and only 4, style properties that apply to > col/colgroup (see link above in comment 2). MS IE bends the specs in this case > (color, font-size, -style, -weight, etc). > > HTML 4 also mentions the align attribute, which is not or badly supported in > most browsers, including Gecko (as noted above, bug 915; no need to comment in > that bug, the issues are known and understood, thank you). > > --- > PS In the future, please use the attachment feature of a bug report to attach > test cases, it is much easier to review. > > *** This bug has been marked as a duplicate of bug 915 *** > Ahh... Thanks -- new here to doing this stuff :-p You need to log in before you can comment on or make changes to this bug. Top ↑

Từ khóa » Html Col Tag Not Working