div {
border: 1em solid;
border-color: inherit;
border-top: none;
}
The entire border-color: inherit; rule will be removed. This is incorrect. Reduced test case: here.
Given the following code:
div {
border: 1em solid;
border-color: inherit;
}
The border-color: inherit; rule will not be removed. This is correct. The default value of a border-color is currentColor which is different from inherit. This is why the rule must be kept. See also: MDN.
Expected behaviour
Given the following code:
div {
border: 1em solid;
border-color: inherit;
border-top: none;
}
Describe the bug
Given the following code:
The entire
border-color: inherit;
rule will be removed. This is incorrect. Reduced test case: here.Given the following code:
The
border-color: inherit;
rule will not be removed. This is correct. The default value of a border-color iscurrentColor
which is different frominherit
. This is why the rule must be kept. See also: MDN.Expected behaviour
Given the following code:
All 3 of the rules need to be kept as-is.
Steps to reproduce
border-color: inherit;
removedVersion
5.0.14
Preset
default
Environment
Package details
Additional context
Please note that I have v5.0.14 on my system, which has this bug, but it also happens on the online playground, of which I don't know the version.