ChavezArquitectos / curvycorners

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

Color ..errhm problem #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Define foreground-color for font-tags in CSS
2. Define a different color for the background of the element you want
rounded corners.

What is the expected output? What do you see instead?
The corners will have the font-foreground-color as background, not the
elements background-color.

What version of the product are you using? On what operating system?
This occurs in 2.04-2.1, not 2.03.

Please provide any additional information below.

Solution I was able to use:
Replace BackColor with ForeColor at row 1264-1265
I didn't actually analyze what it does but 2.03 did it that way and it worked.

Example source:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>test</title>
    <script type="text/javascript"
src="http://curvycorners.googlecode.com/svn/tags/2.1.x/beta/2.1/curvycorners.src
.js"></script>
    <style type="text/css">
        font { color:red; }
        body { background: #cccccc; }
        .block { color:blue; margin: 40px auto; background-color:white;
width:300px; border-radius:10px; -moz-border-radius:10px;
-webkit-border-radius:10px; padding:15px; }
    </style>
</head>
<body>
    <div class="block">Block</div>
</body>
</html>

Original issue reported on code.google.com by albin.la...@gmail.com on 7 Apr 2010 at 2:15

GoogleCodeExporter commented 8 years ago
Correction: Replace ForeColor with BackColor, not the other way around.

Original comment by albin.la...@gmail.com on 7 Apr 2010 at 2:19

GoogleCodeExporter commented 8 years ago
What is a font tag?

Original comment by c.1%smit...@gtempaccount.com on 9 Apr 2010 at 2:46

GoogleCodeExporter commented 8 years ago
I don't know really but my grandpa wanted them.

Actually I have no font-tags in my markup other than the ones curvycorners 
adds, but
* also matches font so if you have "* { color:black; }" it will fuck up 
curvycorners.
It appears to me that color is used instead of background-color.

Original comment by albin.la...@gmail.com on 9 Apr 2010 at 10:14