You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think its a great idea, and does make it a bit clearer from the get-go to be honest, and I would expect this to be even more true for someone new to the feature.
It's similar in that it determines painting order between row-direction and column-direction gap decorations, just like z-index determines painting order between elements. But gap decorations are painted as part of the element they're specified on and do not interact with the painting of other elements.
I'd argue that referring to the "order" of things is already common throughout CSS. We have order, which determines the paint order in addition to positioning items in a grid or flex container or position-try-order in Anchor Positioning. We even have a paint-order property in SVG, while we have no property or value name referring to "overlap", as far as I know.
While I see the point of having "*-overlap", I am leaning towards keeping "order" because to @SebastianZ 's point , order is more of CSS jargon than it is browser engine jargon. So current naming makes sense to me because it doesn't diverge from existing CSS convention/naming.
The CSS Working Group just discussed [css-gaps-1] Bikeshedding rule-paint-order.
The full IRC log of that discussion
<Kurt> kbabbitt: suggestion for renaming rule-paint-order to rule-overlap
<Kurt> kbabbitt: what this property does is determine whether row decorations are painted above column decorations
<Kurt> kbabbitt: I've seen arguments in both directions, motivation is that paint-order sounded jargony. otoh we do have other properties that use "order", such as "paint-order" in SVG
<Kurt> kbabbitt: wanted to run a poll
<Kurt> Javier: I can see both points, someone suggested overlap. I first agreed, but someone else mentioned precedent for order, which I do agree with to align with already existing vocabulary.
<Kurt> SebastionZ: I mentioned order properties
<Kurt> miriam: Do we use order for paint order? I thought we used z-index for what's on top.
<Kurt> SebastionZ: We do have order in paint-order - in flex and grid, it's also specifying the order in which things are render in addition to laid out
<Kurt> astearns: It's a secondary thing, paint order is incidental
<Kurt> SebastionZ: In SVG we have a paint-order property
<Kurt> astearns: Is the difference in how order is used in CSS a good reason to choose a different name
<alisonmaher> q+
<Kurt> mirian: It's not a good reason for keeping that name, feels jargony because I wouldn't understand what that means without understanding browser paint as a concept, feels jargony and I don't see the connection to other order properties. I think rule overlap makes more sense.
<Kurt> kbabbitt: Can we have some other term in CSS to use what we do with paint?
<Kurt> miriam: z-index is the main one
<Kurt> kbabbitt: I guess so, rule-z-index?
<Kurt> miriam: it's a thing that people think of as "layering" in design tools, but we have a different concept
<astearns> ack alisonmaher
<Kurt> amaher: I agree with miriam, current naming might be confusing, rule-overlap might be more intuitive based on name alone
<Kurt> astearns: I'm hearing maybe not overwhelming consensus, but it sounds like we could go with rule-overlap because the uses we have for order in CSS aren't quite the same
<Kurt> kbabbitt: I'm hearing the same thing, if folks are ok with that, I'm ok, or straw poll
<Kurt> SebastionZ: I don't hold a strong opinion, but we should do a straw poll
<Kurt> astearns: we'll do a straw poll in irc, two options are 1) keep paint order 2) change to rule-overlap
<miriam> 2
<alisonmaher> 2
<kbabbitt> 2
<SebastianZ> 1
<diekus> 2
<astearns> 2
<oSamDavis> 1
<javierct> 2
<Kurt> oSamDavis: to Sebastions point, I feel order is more css jargon rather than order in flex in grid, but like you mentioned, it's secondary. I don't have a strong opinion but I prefer order over overlap
<Kurt> astearns: we are resolved for rule-overlap, value names are also ok
<kbabbitt> scribe+ kbabbitt
Activity
JoshTumath commentedon Jul 29, 2025
Thanks for starting the issue @kbabbitt .
The reason for the suggestion was just in case 'paint order' sounded like browser engine jargon.
jav099 commentedon Jul 29, 2025
I think its a great idea, and does make it a bit clearer from the get-go to be honest, and I would expect this to be even more true for someone new to the feature.
KennethHoff commentedon Jul 30, 2025
This is kind of like z-index, right?
kbabbitt commentedon Jul 31, 2025
It's similar in that it determines painting order between row-direction and column-direction gap decorations, just like z-index determines painting order between elements. But gap decorations are painted as part of the element they're specified on and do not interact with the painting of other elements.
SebastianZ commentedon Aug 1, 2025
I'd argue that referring to the "order" of things is already common throughout CSS. We have
order, which determines the paint order in addition to positioning items in a grid or flex container orposition-try-orderin Anchor Positioning. We even have apaint-orderproperty in SVG, while we have no property or value name referring to "overlap", as far as I know.So I prefer keeping the current name.
Sebastian
oSamDavis commentedon Aug 6, 2025
While I see the point of having "*-overlap", I am leaning towards keeping "order" because to @SebastianZ 's point ,
orderis more of CSS jargon than it is browser engine jargon. So current naming makes sense to me because it doesn't diverge from existing CSS convention/naming.KennethHoff commentedon Aug 6, 2025
Assuming it is an order, wouldn't
row-then-columnmake more sense thanrow-over-column? "Then" is not very 'order'-y to mecss-meeting-bot commentedon Aug 6, 2025
The CSS Working Group just discussed
[css-gaps-1] Bikeshedding rule-paint-order.The full IRC log of that discussion
<Kurt> kbabbitt: suggestion for renaming rule-paint-order to rule-overlap<Kurt> kbabbitt: what this property does is determine whether row decorations are painted above column decorations
<Kurt> kbabbitt: I've seen arguments in both directions, motivation is that paint-order sounded jargony. otoh we do have other properties that use "order", such as "paint-order" in SVG
<Kurt> kbabbitt: wanted to run a poll
<Kurt> Javier: I can see both points, someone suggested overlap. I first agreed, but someone else mentioned precedent for order, which I do agree with to align with already existing vocabulary.
<Kurt> SebastionZ: I mentioned order properties
<Kurt> miriam: Do we use order for paint order? I thought we used z-index for what's on top.
<Kurt> SebastionZ: We do have order in paint-order - in flex and grid, it's also specifying the order in which things are render in addition to laid out
<Kurt> astearns: It's a secondary thing, paint order is incidental
<Kurt> SebastionZ: In SVG we have a paint-order property
<Kurt> astearns: Is the difference in how order is used in CSS a good reason to choose a different name
<alisonmaher> q+
<Kurt> mirian: It's not a good reason for keeping that name, feels jargony because I wouldn't understand what that means without understanding browser paint as a concept, feels jargony and I don't see the connection to other order properties. I think rule overlap makes more sense.
<Kurt> kbabbitt: Can we have some other term in CSS to use what we do with paint?
<Kurt> miriam: z-index is the main one
<Kurt> kbabbitt: I guess so, rule-z-index?
<Kurt> miriam: it's a thing that people think of as "layering" in design tools, but we have a different concept
<astearns> ack alisonmaher
<Kurt> amaher: I agree with miriam, current naming might be confusing, rule-overlap might be more intuitive based on name alone
<Kurt> astearns: I'm hearing maybe not overwhelming consensus, but it sounds like we could go with rule-overlap because the uses we have for order in CSS aren't quite the same
<Kurt> kbabbitt: I'm hearing the same thing, if folks are ok with that, I'm ok, or straw poll
<Kurt> SebastionZ: I don't hold a strong opinion, but we should do a straw poll
<Kurt> astearns: we'll do a straw poll in irc, two options are 1) keep paint order 2) change to rule-overlap
<miriam> 2
<alisonmaher> 2
<kbabbitt> 2
<SebastianZ> 1
<diekus> 2
<astearns> 2
<oSamDavis> 1
<javierct> 2
<Kurt> oSamDavis: to Sebastions point, I feel order is more css jargon rather than order in flex in grid, but like you mentioned, it's secondary. I don't have a strong opinion but I prefer order over overlap
<Kurt> astearns: we are resolved for rule-overlap, value names are also ok
<kbabbitt> scribe+ kbabbitt
astearns commentedon Aug 6, 2025
RESOLVED: Change name to
rule-overlap5 remaining items
[gap-decorations] Change `rule-paint-order` to `rule-overlap`
[gap-decorations] Change `rule-paint-order` to `rule-overlap`
[gap-decorations] Change `rule-paint-order` to `rule-overlap`
Bug 1982141 [wpt PR 54214] - [gap-decorations] Change `rule-paint-ord…
[gap-decorations] Change `rule-paint-order` to `rule-overlap`
Bug 1982141 [wpt PR 54214] - [gap-decorations] Change `rule-paint-ord…
Bug 1982141 [wpt PR 54214] - [gap-decorations] Change `rule-paint-ord…
Bug 1982141 [wpt PR 54214] - [gap-decorations] Change `rule-paint-ord…
Rename gap-rule-overlap to rule-overlap
Rename gap-rule-overlap to rule-overlap
Rename gap-rule-overlap to rule-overlap
Rename gap-rule-overlap to rule-overlap
Rename gap-rule-overlap to rule-overlap
Bug 2015122 [wpt PR 57620] - Rename gap-rule-overlap to rule-overlap,…
Bug 2015122 [wpt PR 57620] - Rename gap-rule-overlap to rule-overlap,…