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

View all comments

Show parent comments

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... :\

1

u/chromakode Aug 13 '11

I see inconsistent use of different variants of border-radius in that file. border-radius works for Firefox 4 and recent versions of Chrome. -moz-border-radius is required for Firefox 3.6, and I've added back code to the validator to allow that and its kin. Your tab styles only currently employ border-radius. See: http://caniuse.com/#search=border-radius

2

u/relic2279 Aug 13 '11

Actually, that's the bug I'm referring too.

When you look at the stylesheet from the outside (http://www.reddit.com/r/Browns/stylesheet), it doesn't contain the -moz or -webkit

But it's actually IN the stylesheet, I put it in myself:

http://i.imgur.com/BGtdl.png

:P

→ 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!