Re: [csswg-drafts] [css-content] Description about <content-replacement> doesn't match what implementations do for pseudo-elements

I suspect the reason there is a distinction between content-list and content-replacement is for this situation:

```
p::before {
    content: url(image.svg);
    height: 1em;
}
```

If this is treated as a content-replacement, the image is given a height. If it's treated as a content-list, then it isn't. Given this is the only way to set a height on an image used in a pseudo-element. I think the distinction is important and must remain as defined, applying to both elements and pseudo-elements.

Although none of the browsers currently support this, this approach is used quite heavily in the Antenna House demo document available for download at https://www.antennahouse.com/antenna1/css/

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

Received on Thursday, 11 October 2018 07:54:13 UTC