Canvas element styling with d3.carto.map does not use d3.selectAll like SVG element styling because these aren’t SVG elements.
This relies on using cartoLayer.markerColor() and cartoLayer.markerSize() and setting them to function based on the data. If you don’t set markerColor, then it will rely on CSS styling of the associated class.