Skip to content

Map link, link-rel-expect, link-rel-preconnect, link-rel-prefetch, and link-rel-preload web-features - #56502

Merged
foolip merged 3 commits into
web-platform-tests:masterfrom
bocoup:link-wf
Jan 15, 2026
Merged

foolip merged 3 commits into
web-platform-tests:masterfrom
bocoup:link-wf

Conversation

@stalgiag

@stalgiag stalgiag commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

Feature: link
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link.yml

Feature: link-rel-expect
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-expect.yml

Feature: link-rel-preconnect
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-preconnect.yml

Feature: link-rel-prefetch
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-prefetch.yml

Feature: link-rel-preload
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-preload.yml

Notable exclusions

  1. rellist-feature-detection.html - tests across several related features, excluded from all

  2. alternative-style-sheets tests excluded from link, primarily tests interaction with alternate stylesheets

    • css/cssom/HTMLLinkElement-disabled-*.html
  3. modulepreload tests excluded from link-rel-preload

    • preload/*modulepreload*.html
  4. Link header tests excluded from link-rel-preload

    • preload/link-header-preload.html
  5. link-rel-dns-prefetch

    • Only tested via feature detection in rellist-feature-detection.html, which is mapped to link. No exclusive tests found.

…tch`, and `link-rel-preload` web-features

Feature: `link`
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link.yml

Feature: `link-rel-expect`
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-expect.yml

Feature: `link-rel-preconnect`
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-preconnect.yml

Feature: `link-rel-prefetch`
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-prefetch.yml

Feature: `link-rel-preload`
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-preload.yml

Notable exclusions

1. `rellist-feature-detection.html` - tests across several related features

2. `alternative-style-sheets` tests excluded from `link`
   - `css/cssom/HTMLLinkElement-disabled-*.html` - primarily tests interaction with alternate stylesheets

3. `modulepreload` tests excluded from `link-rel-preload`, `modulepreload` is a separate mechanism from `preload
   - `preload/*modulepreload*.html`

4. `Link` header tests excluded from `link-rel-preload`
   - `preload/link-header-preload.html`

5. `link-rel-dns-prefetch`
   - Only tested via feature detection in `rellist-feature-detection.html`, which is mapped to `link`. No exclusive tests found.
features:
- name: link-rel-expect
files:
- element-render-blocking-001.html

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given how complicated this ends up being I'm not sure if the features have been split correctly in web-features. These are the two related features:

@mfreed7 @noamr can you take a look here and say if you think it makes sense? I notice commit message talk about document render blocking and element render blocking, but that isn't how it's split in web-features. Is there another web-features split that would make more sense and map better to the tests as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking a look! If both the feature definitions and this split of tests makes sense to you, let's go for it!

features:
- name: link
files:
- conditionally-block-rendering-on-link-media-attr.html

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very specific test about stylesheet loading, I don't think it should be mapped to the rather generic <link> feature. Can you revert this bit?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll revert this myself.

@@ -1,4 +1,6 @@
features:
- name: link
files: "**"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I resolved merge conflicts without changing this. But I think it's OK if those two tests are mapped to both features.

@foolip
foolip enabled auto-merge (squash) January 15, 2026 18:03
@foolip
foolip merged commit edb3403 into web-platform-tests:master Jan 15, 2026
KurtCattiSchmidt pushed a commit to KurtCattiSchmidt/wpt-ahem that referenced this pull request Jan 21, 2026
…tch`, and `link-rel-preload` web-features (web-platform-tests#56502)

Feature: `link`
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link.yml

Feature: `link-rel-expect`
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-expect.yml

Feature: `link-rel-preconnect`
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-preconnect.yml

Feature: `link-rel-prefetch`
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-prefetch.yml

Feature: `link-rel-preload`
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/link-rel-preload.yml

Notable exclusions

1. `rellist-feature-detection.html` - tests across several related features

2. `alternative-style-sheets` tests excluded from `link`
   - `css/cssom/HTMLLinkElement-disabled-*.html` - primarily tests interaction with alternate stylesheets

3. `modulepreload` tests excluded from `link-rel-preload`, `modulepreload` is a separate mechanism from `preload
   - `preload/*modulepreload*.html`

4. `Link` header tests excluded from `link-rel-preload`
   - `preload/link-header-preload.html`

5. `link-rel-dns-prefetch`
   - Only tested via feature detection in `rellist-feature-detection.html`, which is mapped to `link`. No exclusive tests found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants