Skip to content

Flexbox: Link to containing block not established; perhaps you forgot to call set_absolute_descendants #7317

Closed

Description

@paulrouget
thread 'LayoutWorker worker 3/3' panicked at 'Link to containing block not established; perhaps you forgot to call `set_absolute_descendants`?', /Users/paul/github/servo/components/layout/flow.rs:1411
<div style="display:flex;position:absolute">
  abc
</div>

Requires #7331.

Activity

  1. paulrouget commented on Aug 22, 2015

    @paulrouget
    ContributorAuthor

    Happens when position:absolute/relative is used inside a flex element.

  2. pcwalton commented on Aug 22, 2015

    @pcwalton
    Contributor

    Should be fairly easy to fix; the probable fix is right in the error message :)

  3. added
    I-panic
    on Aug 23, 2015
  4. aidanhs commented on Sep 14, 2015

    @aidanhs
    Contributor

    Can't reproduce with provided testcase, but http://maps.google.com in release mode does do it.
    (UK gmaps crashes servo with a different error in dev mode).

  5. jdm commented on Sep 25, 2015

    @jdm
    Member

    @aidanhs: You likely need to run with --pref layout.flex.enabled to reproduce the crash.

  6. shinglyu commented on May 10, 2016

    @shinglyu
    Contributor

    I can't reproduce the crash by running ./mach run -d --pref layout.flex.enabled --pref layout.flex-direction.enabled, also tried --release. Is this solved by some previous patch?

  7. jdm commented on May 10, 2016

    @jdm
    Member

    Seems likely!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-layout/flexI-panic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions