nib icon indicating copy to clipboard operation
nib copied to clipboard

border-radius inherit not being compiled

Open YarnSphere opened this issue 10 years ago • 4 comments

@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;
}

YarnSphere avatar Jul 30 '14 22:07 YarnSphere

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

notslang avatar Jul 30 '14 22:07 notslang

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 avatar Jan 08 '15 23:01 2is10

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

border-radius: '%s' % inherit

2is10 avatar Feb 03 '15 17:02 2is10

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

SerikDM avatar Aug 22 '18 15:08 SerikDM