Closed ai closed 8 years ago
Right now we insert reset properties directly to rule. As result after postcss-intial we have long list of properties in rule. Of course, it is not a problem for CSS size because of gzip, but it is a problem for DevTool inspecting.
postcss-intial
My suggestion. Input:
.a { color: black; } .b { color: white; }
Output:
.a, .b { all: initial; } .a { color: black; } .b { color: white; }
@maximkoretskiy this idea came from @DanGamble89
Right now we insert reset properties directly to rule. As result after
postcss-intial
we have long list of properties in rule. Of course, it is not a problem for CSS size because of gzip, but it is a problem for DevTool inspecting.My suggestion. Input:
Output: