Width on Image not being propegated to taffy
- Dominant language
- Rust
- Stars
- 4.1k
- Forks
- 203
- Avg merge
- 8h 58m
- Merged PRs (30d)
- 112
Description
I have noticed that if the width of an image is specified as an attribute, taffy will only get auto for the width. Setting it in a style block seems to work. This test does pass likely due to much of the image layout being handled directly in blitz, but taffy does not seem to receive the correct width.
```
CSS Test: Absolutely positioned inline replaced element with 'direction' as left-to-right, 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width
#div1
{
border: solid black;
direction: ltr;
height: 3in;
position: relative;
width: 2in;
}
img
{
margin-left: auto;
margin-right: auto;
left: 0.5in;
position: absolute;
right: 0.5in;
}
div div
{
background: orange;
height: 1in;
margin-left: 0.5in;
margin-right: 0.5in;
margin-top: 1in;
width: 1in;
}
Test passes if the blue and orange squares have the same width and are horizontally centered in an hollow black rectangle.
```
Contributor guide
Assessment
This issue has not been assessed yet.