From 3686d71cf70b4e396c75979cdc74abe37801a2f6 Mon Sep 17 00:00:00 2001 From: Tab Atkins-Bittner Date: Fri, 25 Oct 2024 15:50:59 -0700 Subject: [PATCH 1/6] Call out that path prefixes can be overridden, and do so in the example to make it clearer. --- docs/index.bs | 14 ++++++++++- docs/index.html | 65 ++++++++++++++++++++++++++++--------------------- 2 files changed, 50 insertions(+), 29 deletions(-) diff --git a/docs/index.bs b/docs/index.bs index a1ba084508..116a09349c 100644 --- a/docs/index.bs +++ b/docs/index.bs @@ -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. * WPT Path Prefix 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.) * WPT Display takes the values "none", "closed", "open", or "inline", and specifies whether and how <{wpt}> elements display anything in the output document. * Tracking Vector Class is the HTML `class` attribute value used on the link inserted in elements annotated with the `tracking-vector` attribute. @@ -3882,6 +3883,17 @@ and will override the metadata if specified. no-foo-when-no-bar.html + + Alternately, the path prefix could be indicated just on the one block: + + + Implementations must FOO whenever they would also BAR. + + <wpt pathprefix="/foo-spec/"> + foo-whenever-you-bar.html + no-foo-when-no-bar.html + </wpt> + For debugging purposes, diff --git a/docs/index.html b/docs/index.html index b3e6543cd7..1c6a02b2b9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1488,9 +1488,9 @@ } } - + - + - + - +