Re: [csswg-drafts] [css-align][css-grid][css-flexbox] align-content:baseline applies to all grid/flex items? (#4545)

> Content alignment requires adding space inside the element, but replaced elements don't have internal CSS layout. So I'm unsure how they could be participating?

First, talking about _elements_ in this context makes no sense, since CSS layout is based on boxes. Second, "adding space" here refers to [_increasing the padding_](https://drafts.csswg.org/css-align-3/#baseline-align-content) and images certainly have padding, for example:
```html
<img style="border:1px solid; padding:30px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAMCAIAAAD3UuoiAAAAGklEQVQoz2Nk%2BP%2BfgRqAiYFKYNSgUYOGp0EA%2BQMCFrJdTgsAAAAASUVORK5CYII%3D">
```

So why exactly shouldn't `align-content:baseline` apply to images (and any other box type that applies `padding`) by increasing that padding?

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

Received on Friday, 24 April 2020 21:40:40 UTC