Skip to content

[css-anchor-position] The "acceptable anchor" algo seems broken #11030

Closed
@jwatt

Description

@jwatt

The acceptable anchor text contains the following:

  • possible anchor is painted strictly before positioned el, aka one of the following is true:

I don't think some of these cases are correct.

For example:

seems to say that this should work:

<body>
  <div class="anchored" style="position: absolute;"></div>
  <div style="position: absolute;">
    <div class="anchor"></div>  
  </div>
</body>

And:

  • both elements' containing blocks are generated by elements, and positioned el’s containing block is an ancestor in the flat tree to that of possible anchor’s containing block.

seems to say that this should work:

<body>
  <div style="position: absolute;">
    <div class="anchored" style="position: absolute;"></div>
    <div style="position: absolute;">
      <div class="anchor"></div>  
    </div>
  </div>
</body>

In other words, in these two cases we sometimes still require that "possible anchor is earlier in flat tree order than positioned el."

This seems...hard to spec.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions