css-loader icon indicating copy to clipboard operation
css-loader copied to clipboard

[BUG] CSS attribute selectors classnames aren't being generated as expected

Open ghost opened this issue 4 years ago • 1 comments

Let's suppose we have something like

.h-center-element-abs {
	/* boil */
}

.v-center-element-abs {
	/* boil */
}

.v-center-element-abs[class*=h-center-element-abs] {
	/* boil */
}

expected result

._39V2 {
	/* boil */
}
._3_71 {
	/* boil */
}
._3_71[class*=_39V2] {
	/* boil */
}

instead I am getting

._39V2 {
	/* boil */
}
._3_71 {
	/* boil */
}
._3_71[class*=h-center-element-abs] {
	/* boil */
}

If asked, I am hashing with 4 bytes of the class name hash result, but I guess it doesn't have relevance here.

ghost avatar Apr 06 '21 22:04 ghost

Please use the issue template in the future, respect time of other developers

alexander-akait avatar Apr 07 '21 12:04 alexander-akait