Re: [csswg-drafts] [css-gaps-1] Gap decorations next to empty grid areas (#12602)

In a call yesterday, @bfgeek pointed out that it might be useful for some scenarios to have a five-state value:
1. Paint regardless of content (current/default behavior)
2. Paint if there's content on at least 1 side
3. Paint if there's content on at least the start side
4. Paint if there's content on at least the end side
5. Paint if there's content on both sides

I'm struggling to come up with a good name for the property though.

This one I think has good words in the wrong order; CSS naming conventions lead to a misplaced modifier:
```css
rule-adjacent-content-visibility: any | one-side | start-side | end-side | both-sides
```

More accurate but pulls the name away from related property names, though maybe that's okay given the precedent of `empty-cells` for tables?
```css
adjacent-content-rule-visibility: any | one-side | start-side | end-side | both-sides
```

This reads slightly easier on the surface, but it sounds to me like it's specifying which sides need to be *empty* for behavior to change, which I think is a logical flip from what authors need:
```css
rule-empty-area-visibility: any | one-side | start-side | end-side | both-sides
```


-- 
GitHub Notification of comment by kbabbitt
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12602#issuecomment-3192864961 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 15 August 2025 22:03:30 UTC