Skip to content

Support for CSS Flexbox/Grid Gap Decorations #193

Closed

Description

@brandonmcconnell

Description

CSS Flexbox/Grid support for gap decorators as solution to gap borders

Plain tables and CSS columns support native borders, but no such styling exists that supports the flexible gaps of CSS Flexbox and Grid.

Mats Palmgren's drafted spec would solve this issue and provide such styling for both cases including support for border images, similar to existing support for borders in CSS.

Mozilla is already working on this: https://bugzilla.mozilla.org/show_bug.cgi?id=1725495

This has been a long-standing request with no solution but a handful of half-baked workarounds. It'd be great to have a native solution like this one adopted across all major browsers.

Rationale

Specification

https://matspalmgren.github.io/css-gap-decorations/Overview.html

Tests

No tests yet, but plenty of related bugs being worked through by Mozilla (links above)

Activity

  1. gsnedders commented on Oct 7, 2022

    @gsnedders
    Member

    See also: w3c/csswg-drafts#6748

    It's not clear to me anyone is actively working on this, however, either at Mozilla (especially now Mats is no longer at Mozilla, AFAIK) or elsewhere, which probably means no spec or implementation work is going to happen in time for this to be viable as a proposal for 2023.

  2. moved this to Proposed in Interop 2023on Oct 10, 2022
  3. karlcow commented on Oct 11, 2022

    @karlcow

    @tiaanl at Mozilla is now looking at the grid bugs.

  4. SebastianZ commented on Nov 2, 2022

    @SebastianZ

    As one of the persons heavily involved in previous discussions on that topic, I'd also love to see this getting some traction again next year.

    Just an additional note: The approach for styling gaps should be holistic, i.e. discussions and the experimental implementation also included multi-column and table layouts.

    Sebastian

  5. progers commented on Nov 3, 2022

    @progers

    This seems more like a feature request (a good one for sure), rather than an interop issue, no?

  6. brandonmcconnell commented on Dec 6, 2022

    @brandonmcconnell
    Author

    @progers I opted for an interop issue as the feature is already spec'd and partially implemented in some browsers. However, yes, for some browsers, this would be a new addition.

  7. SebastianZ commented on Dec 6, 2022

    @SebastianZ

    I opted for an interop issue as the feature is already spec'd

    It is not, unfortunately. The spec. at https://matspalmgren.github.io/css-gap-decorations/Overview.html is inofficial and the CSS Working Group didn't resolve yet to turn it into an official spec.

    and partially implemented in some browsers. However, yes, for some browsers, this would be a new addition.

    The "partial implementation in some browsers" is an experimental WIP implementation for Gecko (Firefox) by @MatsPalmgren, which never actually made it into the browser.

    Furthermore, the discussions in the related CSSWG issues have stalled for quite some time now.

    So I need to lower the expectations here. Regarding the above, I believe this isn't going to make it into any browser engine anytime soon, much less getting interoperability between them in 2023.

    Setting this as an interop goal for 2023 would be a strong signal to push this feature forward. Though - and I am very sad to say that - it would also be totally unrealistic, IMO.

    Having said that, as implied in my previous comment, I will push on this and help shaping it out next year. So if everything goes well, it might end up in the interop goals for 2024. 😊🤞

    Sebastian

  8. brandonmcconnell commented on Dec 14, 2022

    @brandonmcconnell
    Author

    @SebastianZ That makes perfect sense to me, and if we can work towards that goal, that sounds great to me!

  9. nairnandu commented on Feb 1, 2023

    @nairnandu
    Contributor

    Thank you for proposing CSS Flexbox/Grid Gap Decorations for inclusion in Interop 2023.

    We wanted to let you know that this proposal was not selected to be part of Interop this year. Being able to decorate gaps is an exciting idea that has been proposed multiple times at the CSS Working Group, but there is no draft specification, yet. The Interop project only includes technology that has a mature specification with automated tests to evaluate browser conformance to that spec. The next steps for this idea involve a CSSWG member finding time to draft a concrete proposal.

    For an overview of our process, see the proposal selection summary. Thank you again for contributing to Interop 2023!

    Posted on behalf of the Interop team.

  10. brandonmcconnell commented on Feb 1, 2023

    @brandonmcconnell
    Author

    @nairnandu For future reference, does the draft spec need to be official and hosted by CSSWG? My reason in asking is I included a link to this draft spec: https://matspalmgren.github.io/css-gap-decorations/Overview.html

  11. nairnandu commented on Feb 2, 2023

    @nairnandu
    Contributor

    @brandonmcconnell Thank you for asking. Yes, the spec needs to be official and on one of the tracks mentioned in the proposal submission template. In this particular case, it would be a CSSWG spec on the Recommendations Track.

  12. brandonmcconnell commented on Feb 2, 2023

    @brandonmcconnell
    Author

    @nairnandu Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions