Skip to content

Intermittent failure in /_mozilla/css/last_of_type_pseudo_a.html #8191

Closed

Description

@jdm

Looks like a layout issue.
screen shot 2015-10-25 at 12 06 36 pm

Activity

  1. added
    I-intermittent
    on Oct 25, 2015
  2. changed the title [-]Intermittent failure in _mozilla/css/last_of_type_pseudo_a.html[/-] [+]Intermittent failure in /_mozilla/css/last_of_type_pseudo_a.html[/+] on Feb 19, 2016
  3. nox commented on Feb 19, 2016

    @nox
    Contributor

    With this in last_of_type_pseudo_a.html:

        <div id="d1">
          <p> </p>
          <div> </div>
          <div> </div>
          <p> </p>
          <address> </address>
          <p> </p>
          <div> </div>
          <p> </p>
          <p> </p>
          <address> </address>
    <!--       <address class="ok"> </address>
          <p> </p>
          <div class="ok"> </div>
          <p> </p>
          <p class="ok"> </p> -->
        </div>

    We get:

    capture d ecran 2016-02-19 a 14 45 37

    Seems like layout is done when the document isn't complete and these nodes aren't styled again when the rest is finally parsed and handled.

  4. nox commented on Feb 19, 2016

    @nox
    Contributor
    <!DOCTYPE html>
    <html>
      <head>
        <link rel='match' href='last_of_type_pseudo_b.html'>
        <title>:last-of-type test</title>
        <style type="text/css">
          html { background: red; }
          /* Should match according to Selectors Level 4 (changed from Level 3) */
          html:last-of-type { background: white; }
    
          div > p,
          div > div,
          div > address {
              float: left;
              width: 20px;
              height: 20px;
              margin: 0px;
              margin-right: 10px;
              padding: 0px;
          }
          div > p {
              background: white;
          }
          div > div,
          div > address {
              background: black;
          }
          body > div { clear: both; margin-bottom: 10px; }
    
          #d1 > .ok { background: red; }
          #d1 > *:last-of-type { background: green }
    
        </style>
        <script>
          setTimeout(function() {
            var d1 = document.getElementById("d1");
            var address = document.createElement("address");
            address.classList.add("ok");
            d1.appendChild(address);
            console.log("ok");
          }, 1000);
        </script>
      </head>
      <body>
        <div id="d1">
          <p> </p>
          <div> </div>
          <div> </div>
          <p> </p>
          <address> </address>
          <p> </p>
          <div> </div>
          <p> </p>
          <p> </p>
          <address> </address>
    <!--       <address class="ok"> </address>
          <p> </p>
          <div class="ok"> </div>
          <p> </p>
          <p class="ok"> </p> -->
        </div>
      </body>
    </html>
  5. jdm commented on Feb 19, 2016

    @jdm
    MemberAuthor

    That last testcase works with -i (ie. incremental reflow disabled).

  6. self-assigned this
    on Feb 19, 2016
  7. KiChjang commented on Feb 22, 2016

    @KiChjang
    Contributor

    Disabled in #9716

  8. added a commit that references this issue on Feb 23, 2016
  9. added 5 commits that reference this issue on Feb 23, 2016
    8dd4222
    a33677f
    7cb1926
    b9e4890
    9739189
  10. added a commit that references this issue on Feb 24, 2016
    438b3a4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-layout/uncategorizedI-intermittent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions