Type selector
.some-class :first-child
which selects the first child inside .some-class , works as expected in all browsers, even in IE8.
But the mobile Chrome โReduce Data .some-class โ removes the gap between .some-class and :first-child and breaks the CSS by applying styles to the .some-class element .some-class . In other cases, for example .class1 .class2 Chrome keeps the space intact. He probably thinks that the space between .some-class and :first-child not a semantic space, because it believes that there cannot be a pseudo .some-class without any selector.
But I checked the standard, and it does not say anywhere that the pseudo-class should have a selector. At the same time, all examples with pseudo-classes include an element selector, for example
p:first-child
So I'm confused. Is this CSS selector incorrect or is there a Chrome error โReducing data usageโ?
source share