Re: [csswg-drafts] [css-gaps-1]: Inheritance of gap decorations within subgrid (#12326)

Thank you for your response and clarification on the "inheritance" behavior. You made a great point that we would not want to blindly inherit gap decorations from the parent grid as it might not align with the author's intent. However, there might be a case for selective or "smart" inheritance, where decorations are inherited only for the specific gaps corresponding to tracks a subgrid spans.

To examplify, I have:
<img width="9283" height="4645" alt="Image" src="https://github.com/user-attachments/assets/d13c9bc8-ab74-4e99-835b-9e422f30567b" />

In the above, the subgrid inherits the decorations of the gaps it spans. I'm not certain this behavior is desirable from a web author's perspective, but it's worth noting the discussion in [2285](https://github.com/w3c/csswg-drafts/issues/2285), which motivated the `normal` keyword for gap inheritance primarily to reduce syntax repetition in subgrids. That rationale could arguably extend to gap decorations as well.


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


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

Received on Friday, 25 July 2025 00:25:10 UTC