CSS by T. Afif @css-only.dev · Mar 25

I thought I had found a bug that prevented counter() from working properly, but it was a feature! css-tip.com/counter-gotc... Another CSS gotcha that you'd better know about if you don't want to waste time trying to figure out why your code isn't working. Thanks to @miriam.codes for the insights

17 likes 1 replies

?

Replies

Greg Potter · Mar 25

Key lesson I learned: "container-type: inline-size;"/"container-type: size;" creates the same containment context as "contain: inline-size style;"/"contain: size style;". Those "container-type" values being the same words as "contain" values can cause containment confusion without this knowledge.