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

Tables and boxes establishing formatting contexts should be positioned next to floats #2019

Open
liZe opened this issue Dec 12, 2023 · 0 comments
Labels
bug Existing features not working as expected

Comments

@liZe
Copy link
Member

liZe commented Dec 12, 2023

In CSS 2.1:

The border box of a table, a block-level replaced element, or an element in the normal flow that establishes a new block formatting context (such as an element with 'overflow' other than 'visible') must not overlap the margin box of any floats in the same block formatting context as the element itself.

They currently overlap:

<style>
  div {
    float: right;
    background: #f004;
    width: 50%;
    height: 10em;
    margin: 1em;
  }
  h1 {
    border: 1px solid black;
    overflow: hidden;
  }
</style>
<div>float</div>
<h1>title</h1>
@liZe liZe added the bug Existing features not working as expected label Dec 12, 2023
@liZe liZe changed the title Floats should not overlap atomic elements Tables and boxes establishing formatting contexts should be positioned next to floats Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing features not working as expected
Projects
None yet
Development

No branches or pull requests

1 participant