r/modhelp • • Aug 12 '11

CSS validation change recently? Can't get previously accepted CSS to validate.

I'm seeing error messages about moz and webkit specific border properties:

[line 97] "border-top-left-radius" is not a valid CSS property
  -webkit-border-top-left-radius:4px;
[line 98] "border-top-right-radius" is not a valid CSS property
  -webkit-border-top-right-radius: 4px;

And even changing them to the new stardard

border-top-left-radius 

produces the same type of errors.

Anyone else see something similar lately; know a solution?

10 Upvotes

34 comments sorted by

8

u/spladug Aug 12 '11

Ick. Investigating.

5

u/chromakode Aug 12 '11

Yep, this is a regression in the code that changed today. I'll push the fix tomorrow.

2

u/phuzion Aug 12 '11

I noticed the same issue too. Different CSS properties, but similar error messages.

2

u/slamare247 Aug 12 '11

http://www.reddit.com/r/csshelp/comments/jg771/webkit_border_radius_problems/

-it's been happening for half a day now. Whatever you do, don't deactivate those lines of code to force a restyle; you won't be able to turn them back on and your round-cornered tabs and the such will be squared indefinitely, unless spladug's successful.

2

u/chromakode Aug 12 '11

Update: this should now be fixed.

1

u/squatly Aug 12 '11

I'm still getting errors :( (in /r/barca)

3

u/chromakode Aug 12 '11

Ah! The old -moz-border-radius-topleft style is still omitted from the validator. I'll add this back later. Sorry for the inconvenience.

1

u/squatly Aug 12 '11

No problem, and thanks! :)

3

u/chromakode Aug 13 '11

Fixed. :)

1

u/squatly Aug 13 '11

You are 100 different kinds of awesome! Thanks :)

1

u/_sic Aug 14 '11

Actually, I don't think this is fixed. The elements that have this assigned to be rounded are coming out square.

1

u/chromakode Aug 14 '11 edited Aug 14 '11

1

u/_sic Aug 14 '11

Thanks. By the way, in FF 5 and Chrome everything is fine, the problem is with older versions of FF.

1

u/chromakode Aug 14 '11

Just pushed a fix. Please re-save your stylesheet to restore your vendor-prefixed border-radius properties.

1

u/_sic Aug 14 '11

Thank you!

1

u/db2 Aug 12 '11

Where/when is a good place/time to put something like this:

[line 6] "rgba(239,247,255,.50)" is not a valid value for CSS property "background"
background: rgba(239,247,255,.50);

This link is mostly for my own reference later

If there's a sub just for reddit CSS, specifically getting more updated standards in, I'd love to know about it.

1

u/WoozleWuzzle Aug 13 '11 edited Aug 13 '11

Any update on this chromakode? I was planning to make a few tweaks this weekend, but I am now hindered from doing much of anything.

3

u/chromakode Aug 13 '11

Planning to push the fix within about 3 hours. I will reply again when it's ready!

1

u/WoozleWuzzle Aug 13 '11

Thanks! Don't work too much, it is the weekend after all!

2

u/chromakode Aug 13 '11

Done! You should be good to go.

1

u/relic2279 Aug 13 '11

Hmm, it validates now but doesn't round the corners. See /r/browns as an example. I've even tried removing the -moz and -webkit prefix and it still won't round the corners for some reason.

I'll poke around and see if I can find another way to do it. I'm a css newbie so a lot of my css code is basically cutting/pasting/editing others work - it's likely my fault due to extreme ignorance. :P

2

u/chromakode Aug 13 '11

For current browsers, just using border-radius: ... is the way to go. The CSS property has now been standardized. The -moz- and -webkit- versions are simply allowed for backwards compatibility.

1

u/relic2279 Aug 13 '11

Think I see the problem.

Just a heads up, for some reason, it's not rounding the tab/sidebar corners in firefox 3.6 (it used too) but it is rounding the corners in Chrome. Here are two screenshots:

Firefox 3.6 (no rounded corners)

Chrome (rounded corners)

Guess it's my fault for using an older version of firefox... :\

→ More replies (0)

1

u/WoozleWuzzle Aug 13 '11

Awesome thanks! Go back to enjoying your Saturday!

1

u/chromakode Aug 13 '11

Thanks, I will! ;)

1

u/WoozleWuzzle Aug 13 '11

Holy shitsnacks, that looks awesome. Have fun!