@Mysterious.color Hi,
As in my opinion, switch learns MAC address based on interfaces, rather than VLANs,while the interfaces are bind to different VLANs. Based on these information, the CAM entries generated on the switch.
Switch forwards the traffic based the CAM entries.
In addition, VLAN seperates the broadcast domain, and limit the broadcast traffic spreading in the same VLAN, which would help to reduce the useless traffic on the switch, and the consumption of the hardward, bandwidth