There are two factors.
One is whether the dimmer switch is the old school triac type vs the newer type meant for LEDs.
The other factor is whether you expect them to dim the same linear amount which they may not do, but it is probable that both will dim.... just not necessarily by the same amount. Whether your eyes can tell the difference is another matter.
It's not whether dimmer works correctly, it just does what it does. It's whether the bulbs respond the same and different makes/models of each wattage bulb may respond in a different dimming curve based on that.
Ideally, to reduce chances of mis-matched dimming linearity, you wouldn't put dissimilar bulbs on the same dimmer circuit, even if they are the same wattage but different make and/or model of bulb.
Some people aren't that picky and as long as it dims, it's good and this is likely the case here.