stylus / nib

Stylus mixins, utilities, components, and gradient image generation
http://stylus.github.io/nib
MIT License
1.9k stars 250 forks source link

border-radius inherit not being compiled #271

Open YarnSphere opened 10 years ago

YarnSphere commented 10 years ago
@import 'nib'
div
  border-radius 5px
  span
    border-radius inherit

compiles into:

div {
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

instead of:

div {
  -webkit-border-radius: 5px;
  border-radius: 5px;
}
div span {
  -webkit-border-radius: inherit;
  border-radius: inherit;
}
notslang commented 10 years ago

Nice catch! Wanna take a stab at a PR for fixing it?

2is10 commented 9 years ago

I encountered this issue in my own stylesheets and was very surprised. Anything that a stylesheet processor doesn’t understand, it should leave alone.

2is10 commented 9 years ago

Here’s the workaround I’m using, in case it helps others:

border-radius: '%s' % inherit
SerikDM commented 6 years ago

Got same issue. Spent an hours investigating it. What's a reason for removing this property?