Closed dzhiriki closed 8 years ago
font-family
and text-align
inherit too.
Should it be sans-serif
and left
?
color
, font-family
and text-align
are inherited by default so I think inherit
is the right fallback
You are right. I will check all inherit props and create fix after some experiments.
Hi, guys. Sorry for long response. After some experiments, I'm sure that we can replace all inherit
values with something more specific.
Here is current changeset. https://gist.github.com/maximkoretskiy/8b2ede7f06cfdb7a78c0
The only thing we can't fix without any doubt is text-align
. It depends on browser default text direction. There is a modern way to set universal initial value for text-align: text-align: start
. But it doesn't work in old browsers.
Have U any idea for this case?
@ai We need your advice
I think color: inherit
is a bad thing. All inherited styles should be declared explicit:
all: inital;
font: inherit;
direction
is already reseted to ltr
so I think text-align: left
is right fallback.
Just published new release.
Why fallback for
color: initial
is acolor: inherit
? It's gave different result. ExampleInitial
is a browser default color. Does it has to beblack
?