The main exception to this rule that you'll run in to is that anything with a transform, filter, clip, or perspective creates a new stacking context on top of everything. Within a context it still follows the last on top rule and different contexts also follow the rule. You just need to be careful about stuff without a new context and when nesting.
@o76923 oooh so thatβs why ! with time I kind of gathered how it worked but didnβt understand that "new context" makes a lot of sense ! thank you β:meow_puffy_melt:β