Skip to content

Fix prefer-inner-target.html and nested-supercedes-common-to-both-axes.html in a spec compliant way #1271

@hiikezoe

Description

@hiikezoe

Test List

I believe the purpose of prefer-inner-target.html is to test this part of the spec;

4. For each list of block and inline:
  3. For each box in list:
    1. Remove any box from list which is an ancestor of box.

The test file name implies it, but the test does not have any nested scroll snap target boxes, all snap targets are siblings.

nested-supercedes-common-to-both-axes.html is also testing a similar DOM structure.

I wrote a proposal change in https://bugzilla.mozilla.org/show_bug.cgi?id=1880436 (you can directly see the change in https://phabricator.services.mozilla.com/D288285) to match the spec definition.

Note that with the proposal change the test fails on Chromium.

@flackr @DavMila

Rationale

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    test-change-proposalProposal to add or remove tests for an interop area

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions