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

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

2

u/chromakode Aug 13 '11

Ah! You're right, good catch. I'll fix this ASAP.

1

u/relic2279 Aug 13 '11

Arigatou! (sorry for keeping you busy on a Saturday)

2

u/chromakode Aug 13 '11

I may not be able to get to this until later tonight, but I'll get it out as soon as I can.

2

u/chromakode Aug 14 '11

Fixed. You'll need to re-save your stylesheet for the vendor prefixes to come back.

1

u/relic2279 Aug 14 '11

Workin' like a charm. Thanks!