Skip to content

Commit

Permalink
Call out that <wpt> path prefixes can be overridden, and do so in the…
Browse files Browse the repository at this point in the history
… example to make it clearer.
  • Loading branch information
tabatkins committed Oct 25, 2024
1 parent e716a69 commit 3686d71
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 29 deletions.
14 changes: 13 additions & 1 deletion docs/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,8 @@ There are several additional optional keys:
You can set a different `crossorigin` value manually on the element,
or skip the element entirely by putting `nocrossorigin` on it or an ancestor.
* <dfn>WPT Path Prefix</dfn> is a partial URL path
that specifies a common path prefix for all of the tests in your <{wpt}> elements.
that specifies a default path prefix for all of the tests in your <{wpt}> elements.
(This can be overridden on an individual <{wpt}> element.)
* <dfn>WPT Display</dfn> takes the values "none", "closed", "open", or "inline",
and specifies whether and how <{wpt}> elements display anything in the output document.
* <dfn>Tracking Vector Class</dfn> is the HTML `class` attribute value used on the link inserted in elements annotated with the `tracking-vector` attribute.
Expand Down Expand Up @@ -3882,6 +3883,17 @@ and will override the metadata if specified.
no-foo-when-no-bar.html
</wpt>
</xmp>

Alternately, the path prefix could be indicated just on the one block:

<xmp highlight=html>
Implementations must FOO whenever they would also BAR.

<wpt pathprefix="/foo-spec/">
foo-whenever-you-bar.html
no-foo-when-no-bar.html
</wpt>
</xmp>
</div>

For debugging purposes,
Expand Down
Loading

0 comments on commit 3686d71

Please sign in to comment.