ChavezArquitectos / curvycorners

Automatically exported from code.google.com/p/curvycorners
0 stars 0 forks source link

Handling of border-radius attribute on non box tags #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Specify a css border-radius attribute on an INPUT type="buttton" tag
2. Displays OK in Firefox / Safari
3. Script fails in IE6 because INPUT tag method appendChildren() is absent.

What is the expected output? What do you see instead?
Script failure. 
[Maybe this is outside your spec?]
Expect graceful degradation if method appendChildren() is absent. Poss fix 
by testing for this.box.canHaveChildren?

What version of the product are you using? On what operating system?
2.0.4 in IE 6 and 8. Server 2003R2 and Windows XP SP2

Please provide any additional information below.
I have tried some other tags and had success with TD, CAPTION. 
But TABLE also failed with missing renedering on IE6, but I havent tracked 
as to why.

Original issue reported on code.google.com by gmc4...@gmail.com on 20 Jul 2009 at 6:32

GoogleCodeExporter commented 8 years ago
Yes, buttons are a nightmare in IE. Thanks for your interesting suggestion, 
which I 
will look into.

Original comment by c.1%smit...@gtempaccount.com on 24 Jul 2009 at 6:22

GoogleCodeExporter commented 8 years ago
TABLE elements can certainly never be rounded using the CC technique. I will 
make 
sure to document this. Recent revisions have attempted to address the issue of 
non-
box elements, but there is a limit to what can be done. It is important to 
understand that CC gets its effects by appending DIV child elements to the 
rounded 
box element.

I don't think that "graceful degradation" is the right response. Instead, 
surely CC 
should trap the condition and report it as informatively as possible so that 
the 
designer can work around it.

I have trapped the canHaveChildren error and improved the documentation.

Original comment by c.1%smit...@gtempaccount.com on 27 Jul 2009 at 4:19