- From: Christoph Päper via GitHub <noreply@w3.org>
- Date: Tue, 31 Mar 2026 15:58:19 +0000
- To: public-css-archive@w3.org
Crissov has just created a new issue for https://github.com/w3c/csswg-drafts:
== [meta][bikeshed] Collapsing inlined WPT tests in drafts ==
Many drafts nowadays have links to tests included. The [Bikeshed] preface marks them as [open by default][WPT Display]:
~~~~ html "Bikeshed source"
<pre class='metadata'>
…
WPT Path Prefix: css/css-foo/
WPT Display: open
</pre>
~~~~
I realize that this is useful for _some_ readers of EDs at `drafts.csswg.org`, but certainly not for _all_ of them and I wonder if it is actually _most_; I doubt it‘s beneficial to many at `w3.org/TR/`.
Personally, I find the behavior particularly annoying when I‘m idref-jumping to a section of a draft on a mobile device and then the target scolls out of focus because apparently it took some time to load and render the test links above. I did not further investigate this, so the scrolling issue may very well be fixable in the respective stylesheets.
The [Bikeshed documentation][Collapse] notes that users can still always toggle the display of test link blocks (since it generates HTML output with `<details>` elements).
~~~~ html "Bikeshed source"
<wpt>
bar.html
…
~~~~
~~~~ html "Generated HTML output"
<details class="wpt-tests-block" dir="ltr" lang="en" open>
<summary>Tests</summary>
<ul class="wpt-tests-list">
<li class="wpt-test">…
~~~~
However, readers can only do this block by block, not document-wide.
Therefore, I wish the tests would default to the closed/collapsed state,
or, if they remain open/expanded by default, there should be some kind of persistent user preference setting.
(No, this is not gonna turn into a proposal for a `prefers-reduced-information` [user preference media query](https://drafts.csswg.org/mediaqueries-5/#mf-user-preferences). 😉)
If the WG prefers the current behavior anyway, should I raise this with [Bikeshed](https://github.com/speced/bikeshed/issues/) instead?
[Bikeshed]: <https://speced.github.io/bikeshed/#testing>
[WPT Display]: <https://speced.github.io/bikeshed/#metadata-wpt-display>
[Collapse]: <https://speced.github.io/bikeshed/#ref-for-metadata-wpt-display>
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13747 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 31 March 2026 15:58:20 UTC