Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Float inside table cell breaks adjacent cell layout #3401

Open
bsweeney opened this issue Feb 24, 2024 · 1 comment
Open

Float inside table cell breaks adjacent cell layout #3401

bsweeney opened this issue Feb 24, 2024 · 1 comment
Milestone

Comments

@bsweeney
Copy link
Member

bsweeney commented Feb 24, 2024

When a table cell contains a floated element, line boxes in adjacent cells are unnecessarily cleared.

The following HTML:

<table border="1">
    <tr>
        <td>
            <div style="float: right;">test</div>
        </td>
        <td width="1em;">
            text spanning more than one line
        </td>
    </tr>
</table>

renders with a gap between the first and second lines in the adjacent cell:
image

when it should render with no gap:
image

Originally posted by @bsweeney in #3400 (reply in thread)

@bsweeney bsweeney added this to the 3.0.1 milestone Feb 24, 2024
@bsweeney
Copy link
Member Author

Also note the incorrect positioning of the floated text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant