Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for CSS Flexbox/Grid Gap Decorations #193

Closed
brandonmcconnell opened this issue Oct 7, 2022 · 11 comments
Closed

Support for CSS Flexbox/Grid Gap Decorations #193

brandonmcconnell opened this issue Oct 7, 2022 · 11 comments
Labels
focus-area-proposal Focus Area Proposal

Comments

@brandonmcconnell
Copy link

brandonmcconnell commented Oct 7, 2022

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)

@brandonmcconnell brandonmcconnell added the focus-area-proposal Focus Area Proposal label Oct 7, 2022
@gsnedders
Copy link
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.

@foolip foolip moved this to Proposed in Interop 2023 Oct 10, 2022
@karlcow
Copy link

karlcow commented Oct 11, 2022

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

@SebastianZ
Copy link

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

@progers
Copy link

progers commented Nov 3, 2022

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

@brandonmcconnell
Copy link
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.

@SebastianZ
Copy link

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

@brandonmcconnell
Copy link
Author

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

@nairnandu
Copy link
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.

@brandonmcconnell
Copy link
Author

brandonmcconnell commented Feb 1, 2023

@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

@nairnandu
Copy link
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.

@brandonmcconnell
Copy link
Author

@nairnandu Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
No open projects
Status: Proposed
Development

No branches or pull requests

6 participants