[csswg-drafts] [css-flexbox][css-grid] orphan text nodes selector (#4215)

Netmosfera has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-flexbox][css-grid] orphan text nodes selector ==
```
div {
    display: flex;
}

div > *, div::orphan-text {
    display: block; flex: 1 1 auto; border: 2px red solid;
}
```

```
<div>
    <span>flex item 1</span>
    orphan text, also a flex item
    <span>flex item 2</span>
    another orphan text
</div>
```

Currently there's no way to change the appearance of "orphan" text nodes that are converted to flex or grid items.

With this addition "orphan" text nodes would become stylable as they were wrapped in an element.

Thank you. Hope that makes sense.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4215 using your GitHub account

Received on Sunday, 18 August 2019 06:11:33 UTC