Re: [csswg-drafts] [css-align] Percentage gaps are underspecified

Well, if I change the above example to use padding instead of margin, like so:
```html
<style>
span { display:inline-block; width:50px; height:10px; background:lime }
</style>
<div style="display:inline-block; border:1px solid;">
  <span style="padding-right:calc(10px + 20%)"></span><span></span>
</div>
```
then the `<div>` has a width of 110px in Chrome (and the padding ends up being 32px).
It seems weird to me that padding and margin percentages are resolved differently.

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

Received on Thursday, 1 March 2018 22:39:56 UTC