Re: [csswg-drafts] [css-grid] Property "grid-item-of": display any element as part of any given grid (#2530)

There was already the idea of generalizing it. So without thinking in terms of Grid or Flexbox, the request is to display an element as child of another element.

With @tobireif's syntax of using a selector as value this would be

```css
.element {
  child-of: #container-element;
}
```

And with @SelenIT's / @ByteEater-pl's syntax of defining names for elements and using them as reference this would be

```css
#container-element {
  name: container;
}

.element {
  child-of: container;
}
```

Sebastian

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

Received on Saturday, 22 February 2020 14:37:30 UTC