Skip to content

[css-gaps-1] Bikeshedding rule-paint-order #12540

Closed

Description

@kbabbitt

I got a suggestion from @JoshTumath to rename rule-paint-order to rule-overlap. What do folks think?

rule-paint-order: row-over-column;

vs

rule-overlap: row-over-column;

Activity

  1. JoshTumath commented on Jul 29, 2025

    @JoshTumath
    Contributor

    Thanks for starting the issue @kbabbitt .

    The reason for the suggestion was just in case 'paint order' sounded like browser engine jargon.

  2. jav099 commented on Jul 29, 2025

    @jav099
    Collaborator

    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.

  3. KennethHoff commented on Jul 30, 2025

    @KennethHoff

    This is kind of like z-index, right?

  4. kbabbitt commented on Jul 31, 2025

    @kbabbitt
    CollaboratorAuthor

    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.

  5. SebastianZ commented on Aug 1, 2025

    @SebastianZ
    Contributor

    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.

    So I prefer keeping the current name.

    Sebastian

  6. oSamDavis commented on Aug 6, 2025

    @oSamDavis
    Collaborator

    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.

  7. KennethHoff commented on Aug 6, 2025

    @KennethHoff

    Assuming it is an order, wouldn't row-then-column make more sense than row-over-column? "Then" is not very 'order'-y to me

  8. css-meeting-bot commented on Aug 6, 2025

    @css-meeting-bot
    Member

    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
  9. astearns commented on Aug 6, 2025

    @astearns
    Member

    RESOLVED: Change name to rule-overlap

  10. 5 remaining items

  11. added a commit that references this issue on Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Closed Accepted by CSSWG Resolutioncss-gaps-1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Sponsor
    SponsoredKunjungi sekarang
    Promo