Skip to content

[css-display] Are run-in sequences recalculated after reinsertions? #1639

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

Closed
Loirooriol opened this issue Jul 21, 2017 · 3 comments
Closed

Comments

@Loirooriol
Copy link
Contributor

Consider this code:

<span style="display: run-in">Foo</span>
<div>
  <span style="display: run-in">Bar</span>
</div>

Foo is inserted inside the div block box. But then, do Foo and Bar become part of the same run-in sequence? Or do they continue being different sequences, and thus are wrapped in different anonymous block boxes? That is, does being reparented recalculate run-in sequences?

@SelenIT
Copy link
Collaborator

SelenIT commented Jul 21, 2017

I'd expect them becoming part of the same run-in sequence. Reparenting makes them siblings in the box tree, doesn't it?

@Loirooriol
Copy link
Contributor Author

Yes, intuitively it seems so. But I'm asking because since the munging depends on the run-in sequences, altering them in the process seems potentially problematic. Anyways the algorithm seems stable enough so that this does not matter, probably it's OK.

@tabatkins
Copy link
Member

I'd prefer them to munge together into one sequence, personally.

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

No branches or pull requests

4 participants