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

display: table-cell incorrectly places element on a new line #11296

Open
KiChjang opened this issue May 20, 2016 · 2 comments
Open

display: table-cell incorrectly places element on a new line #11296

KiChjang opened this issue May 20, 2016 · 2 comments

Comments

@KiChjang
Copy link
Member

@KiChjang KiChjang commented May 20, 2016

Taken from https://en.wikipedia.org/wiki/Sesame_Workshop

<style>
    .tocnumber {
        padding-left: 0;
        padding-right: 0.5em;
    }

    .toctext {
        display: table-cell;
        text-decoration: inherit;
    }
</style>
<ul>
    <li class="toclevel-2 tocsection-2"><a href="#Background"><span class="tocnumber">1.1</span> <span class="toctext">Background</span></a></li>
    <li class="toclevel-2 tocsection-3"><a href="#Founding"><span class="tocnumber">1.2</span> <span class="toctext">Founding</span></a></li>
    <li class="toclevel-2 tocsection-4"><a href="#Early_years"><span class="tocnumber">1.3</span> <span class="toctext">Early years</span></a></li>
    <li class="toclevel-2 tocsection-5"><a href="#Later_years"><span class="tocnumber">1.4</span> <span class="toctext">Later years</span></a></li>
</ul>

Expected:
expected
Actual:
actual

@jdm
Copy link
Member

@jdm jdm commented Jan 10, 2017

I suspect this also causes:

<html style="display: table">
<body style="display:table-cell; border: 1px solid black">
  <h1>CSS FPS</h1>
</body>
</html>

Servo:
screen shot 2017-01-10 at 1 24 07 pm
Firefox:
screen shot 2017-01-10 at 1 24 21 pm

@nox
Copy link
Member

@nox nox commented Oct 1, 2017

This still happens.

@jdm With your sample, it got worse: the window is blank.

@nox nox added the C-reproduced label Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.