Closed Bug 12754 Opened 25 years ago Closed 18 years ago

Can't set proportional width via CSS

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: hyatt, Assigned: dbaron)

References

()

Details

(Keywords: css-moz, css3, testcase)

Attachments

(2 files)

Proportional widths don't work in tables when applied through style. They work when you use the "width" attribute on a <col>, but if you use a style rule that applies to the <col> element, they don't work. Here is a test case demonstrating the problem. It looks like the width unit ends up being auto when it should be proportional. <html> <style> col.namecol { width: 75*; } col.urlcol { width: 25*; </style> <table> <col class="namecol"> <col class="urlcol"> <tr> <td>First Column <td>Second Column </table> </html>
This is important for the tree widget. Since I intermingle fixed width and proportional width columns, I can't just use percentages.
Status: NEW → ASSIGNED
Note that this is not legal CSS. I understand your need and will propose an extension to the CSS w/g. (The "*" is not likely to be the adopted syntax)
oh! That seems strange. I just assumed that since it worked in the attribute that it would work for CSS. Can you explain to me what I need to do if I wanted to support width and height attributes on the tree that made the widths proportional? What do I poke to ensure that the unit is correct? Presumably I do something in my SetAttribute function to alter the style context?
Severity: normal → enhancement
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → REMIND
Summary: Proportional widths don't work in tables → Can't set proportional width via CSS
Status: RESOLVED → VERIFIED
Verified REMIND.
Reassigning peterl's latered bugs to myself.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 25 years ago25 years ago
Is this still resolved REMIND? If not, please remove resolution? If so, I will verify again. Thanks
It's still REMIND. I reassigned to myself a few latered bug from peterl's list so that they show in my queries.
Status: RESOLVED → VERIFIED
Verified REMIND
Keywords: css-moz, css3
Status: VERIFIED → REOPENED
Resolution: REMIND → ---
Reopening my REMIND bugs
Daniel, David, Ian: was it proposed to the WG?
Target Milestone: --- → Future
Changing QA contact
QA Contact: chrisd → madhur
Assigning pierre's remaining Style System-related bugs to myself.
Assignee: pierre → dbaron
Status: REOPENED → NEW
for what is this? Never saw such a thing in CSS3 WDs or somewhere else...
If something like this is to be implemented, then it's certainly All/All. There doesn't appear to be anything in [http://www.w3.org/TR/2001/WD-css3-box-20010726/#the-width] that resembles this.
OS: other → All
Hardware: PC → All
Attached file Testcase referred to in comment #0 (deleted) —
Keywords: testcase
Only the first img is rendered proportionally, others appear to ignore CSS http://www.peepo.com/w3/svg-jpg/svg-jpg.html img { width:10%; } <a href=""><img src="atomickitten.jpg" class="long" /></a> <a href=""><img src="alicia_keys.jpg" /></a> not sure that this is the same bug, but seems related
Comment 16 is unrelated to this bug. The appropriate bug is bug 110358.
Comment on attachment 99051 [details] Sample shows incorrect rendering of height attribute This testcase is unrelated to this bug, but the layout does seem incorrect.
So what is the next step for this testcase? (http://bugzilla.mozilla.org/attachment.cgi?id=99051&action=view) Shall I open a new bug for it?
Yes.
QA Contact: madhur → ian
<http://www.w3.org/TR/css3-box/#the-width> This could be implemented like '-moz-<number>', but I don't think it is that important anymore, as it was in comment 1 :-)
We've removed proportional widths -- the spec failed to explain how they were different from percentage widths.
Status: NEW → RESOLVED
Closed: 25 years ago18 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: