User avatar
Tournesol 🌻 @tournesol@peculiar.florist
2y
Does anybody knows how to get a specific emoji to the foreground in ?
⭐1
1
0
0
1

User avatar
James Endicott @o76923@kitty.social
2y
@tournesol

I hope someone else answered your question already but
uses styling for all the effects. That means later content appears on top

πŸŸ₯🟨🟩
πŸŸ₯🟨🟩


That's why red is bottom in each of these, it goes πŸŸ₯🟨🟩 despite being moved around with
position.

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.

πŸŸ₯🟨🟩


For example, that has yellow at the bottom because it wasn't given
$[position.x=0 while the red and green do have positions.

Most things involving movement, resizing, and cropping create new contexts. Most other stuff doesn't but there are exceptions.
1
0
0
0
User avatar
Tournesol 🌻 @tournesol@peculiar.florist
2y
@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:​
⭐1
1
0
0
1
User avatar
James Endicott @o76923@kitty.social
2y
@tournesol

Maybe we'll get a
z argument to the position function someday. It wouldn't fix the stacking context issue completely but it could still help.
0
0
0
0