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)
Core
CSS Parsing and Computation
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>
Reporter | ||
Comment 1•25 years ago
|
||
This is important for the tree widget. Since I intermingle fixed width and
proportional width columns, I can't just use percentages.
Updated•25 years ago
|
Status: NEW → ASSIGNED
Comment 2•25 years ago
|
||
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)
Reporter | ||
Comment 3•25 years ago
|
||
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?
Updated•25 years ago
|
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
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 4•25 years ago
|
||
Verified REMIND.
Comment 5•25 years ago
|
||
Reassigning peterl's latered bugs to myself.
Updated•25 years ago
|
Status: NEW → ASSIGNED
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 25 years ago
Comment 6•25 years ago
|
||
Is this still resolved REMIND? If not, please remove resolution? If so, I will
verify again. Thanks
Comment 7•25 years ago
|
||
It's still REMIND. I reassigned to myself a few latered bug from peterl's list so
that they show in my queries.
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 8•25 years ago
|
||
Verified REMIND
Updated•25 years ago
|
Updated•23 years ago
|
Status: VERIFIED → REOPENED
Resolution: REMIND → ---
Comment 9•23 years ago
|
||
Reopening my REMIND bugs
Comment 10•23 years ago
|
||
Daniel, David, Ian: was it proposed to the WG?
Target Milestone: --- → Future
Assignee | ||
Comment 12•22 years ago
|
||
Assigning pierre's remaining Style System-related bugs to myself.
Assignee: pierre → dbaron
Status: REOPENED → NEW
Comment 13•22 years ago
|
||
for what is this? Never saw such a thing in CSS3 WDs or somewhere else...
Comment 14•22 years ago
|
||
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
Comment 15•22 years ago
|
||
Comment 16•22 years ago
|
||
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
Assignee | ||
Comment 17•22 years ago
|
||
Comment 16 is unrelated to this bug. The appropriate bug is bug 110358.
Comment 18•22 years ago
|
||
Assignee | ||
Comment 19•22 years ago
|
||
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.
Comment 20•22 years ago
|
||
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?
Assignee | ||
Comment 21•22 years ago
|
||
Yes.
Updated•22 years ago
|
QA Contact: madhur → ian
Comment 22•21 years ago
|
||
<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 :-)
Assignee | ||
Comment 23•18 years ago
|
||
We've removed proportional widths -- the spec failed to explain how they were different from percentage widths.
Status: NEW → RESOLVED
Closed: 25 years ago → 18 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•