Skip to content

Commit

Permalink
Switch requirement.txt to be autogenerated. This involves bumping the…
Browse files Browse the repository at this point in the history
… pygments version, which updates a lot of tests. Closes #2182, which I'm basically just copy/pasting from.
  • Loading branch information
tabatkins committed Feb 16, 2022
1 parent b69e436 commit a555de8
Show file tree
Hide file tree
Showing 115 changed files with 1,141 additions and 635 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
bikeshed = {editable = true,path = "."}

[packages]
bikeshed = {editable = true,path = "."}
aiofiles = "==0.7.0"
aiohttp = "==3.8.0"
attrs = "==21.2.0"
Expand Down
517 changes: 501 additions & 16 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ but instead of running `pip3 install`,
run:

```bash
pipenv install -e .
pipenv install --dev -e .
pipenv run bikeshed update
```

Expand Down
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1487,9 +1487,9 @@
}
}
</style>
<meta content="Bikeshed version 1473289b1, updated Fri Feb 4 14:48:26 2022 -0800" name="generator">
<meta content="Bikeshed version b69e436cb, updated Tue Feb 15 16:02:57 2022 -0800" name="generator">
<link href="https://tabatkins.github.io/bikeshed/" rel="canonical">
<meta content="1473289b1ce37345eba8a83450c7406cd2c923dd" name="document-revision">
<meta content="b69e436cb61f6277b6147df8f824076cdf84baa1" name="document-revision">
<style>/* style-autolinks */

.css.css, .property.property, .descriptor.descriptor {
Expand Down Expand Up @@ -2190,7 +2190,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Bikeshed Documentation</h1>
<h2 class="no-num no-toc no-ref heading settled" id="profile-and-date"><span class="content">Living Standard, <time class="dt-updated" datetime="2022-02-04">4 February 2022</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="profile-and-date"><span class="content">Living Standard, <time class="dt-updated" datetime="2022-02-15">15 February 2022</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand All @@ -2205,7 +2205,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="profile-and-date"><span cla
<div data-fill-with="warning"></div>
<p class="copyright" data-fill-with="copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" height="15" src="https://licensebuttons.net/p/zero/1.0/80x15.png" width="80"></a> To the extent possible under law, the editors have waived all copyright
and related or neighboring rights to this work.
In addition, as of 4 February 2022,
In addition, as of 15 February 2022,
the editors have made this specification available under the <a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
which is available at http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0.
Parts of this work may be from another specification document. If so, those parts are instead covered by the license of that specification document. </p>
Expand Down Expand Up @@ -2517,7 +2517,7 @@ <h4 class="heading settled" data-level="1.3.2" id="install-pipenv"><span class="
<p>Follow the same instructions as above,
but instead of running <code>pip3 install</code>,
run:</p>
<pre class="language-bash highlight">pipenv install -e .
<pre class="language-bash highlight">pipenv install --dev -e .
pipenv run bikeshed update
</pre>
<p>This will <em>not</em> install a <code>bikeshed</code> command by default;
Expand Down
37 changes: 29 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
aiofiles==0.6.0
aiohttp==3.7.4
attrs==20.3.0
certifi==2020.12.5
#
# These requirements were autogenerated by pipenv
# To regenerate from the project's Pipfile, run:
#
# pipenv lock --requirements
#

-i https://pypi.org/simple
aiofiles==0.7.0
aiohttp==3.8.0
aiosignal==1.2.0; python_version >= '3.6'
async-timeout==4.0.2; python_version >= '3.6'
asynctest==0.13.0; python_version < '3.8'

This comment has been minimized.

Copy link
@saschanaz

saschanaz Feb 16, 2022

Oops, this line causes the CI to fail. Since this is for test, probably can be moved to dev dependency I guess.

Edit: Wait, this is a subdependency. 🤔

This comment has been minimized.

Copy link
@tabatkins

tabatkins Feb 17, 2022

Author Collaborator

Weird, if I install bikeshed in a fresh 3.10 pipenv and run it, it tells me the lockfile is out of date and fixes it to change that requirement to >= 3.5.

I've regenned requirements.txt and pushed; hopefully this'll work.

This comment has been minimized.

Copy link
@tabatkins

tabatkins Feb 17, 2022

Author Collaborator

Ahhh, but when I go back to my 3.7 pipenv, it resets the requirement to <= 3.8. Shifting my pipenv up to 3.10 could work, but then it conflicts with the python_version = "3.7" in my Pipfile. Looking at pypa/pipenv#1050, it looks like the intention is that pipenv is meant specifically for publishing applications which are pinned to specific Python versions, and supporting multiple versions is intentionally rejected.

This conflicts with the ability to use pip to install Bikeshed globally, using whatever system Python you currently have access to (and specifically, with the ability to test across multiple versions). I'm not sure there's any way to resolve this that doesn't involve me requiring people to use pipenv to run Bikeshed. :/

This comment has been minimized.

Copy link
@tabatkins

tabatkins Feb 17, 2022

Author Collaborator

Might just bump my local copy to 3.10 and let things fall out as they will.

This comment has been minimized.

Copy link
@saschanaz

saschanaz Feb 17, 2022

For now I think we can remove python_version in Pipfile.

attrs==21.2.0
certifi==2021.10.8
charset-normalizer==2.0.12; python_version >= '3'
cssselect==1.1.0
frozenlist==1.3.0; python_version >= '3.7'
html5lib==1.1
idna==3.3; python_version >= '3'
isodate==0.6.0
json-home-client==1.1.1
lxml==4.7.1
Pillow==9.0.1
pygments==2.8.1
lxml==4.6.5
multidict==6.0.2; python_version >= '3.7'
pillow==9.0.0
pygments==2.10.0
requests==2.27.1
result==0.7.0
tenacity==7.0.0
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
tenacity==8.0.1
typing-extensions==4.1.1; python_version >= '3.6'
uri-template==1.1.0; python_version >= '3.6'
urllib3==1.26.8; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'
webencodings==0.5.1
widlparser==1.0.12
yarl==1.7.2; python_version >= '3.6'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
with open("semver.txt", encoding="utf-8") as fh:
semver = fh.read().strip()
with open("requirements.txt", encoding="utf-8") as fh:
install_requires = [x.strip() for x in fh.read().strip().split("\n")]
install_requires = [x.strip() for x in fh.read().strip().split("\n") if len(x) and x[0].isalpha()]

setup(
name="bikeshed",
Expand Down
2 changes: 1 addition & 1 deletion tests/github/WICG/aom/spec/custom-element-semantics.html
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ <h4 class="heading settled" data-level="1.1.2" id="element-semantics"><span clas
#tablist <c- o>=</c-> <c- kc>null</c-><c- p>;</c->
#tabpanel <c- o>=</c-> <c- kc>null</c-><c- p>;</c->

constructor<c- p>()</c-> <c- p>{</c->
<c- kr>constructor</c-><c- p>()</c-> <c- p>{</c->
<c- k>super</c-><c- p>();</c->
<c- k>this</c-><c- p>.</c->#internals <c- o>=</c-> customElements<c- p>.</c->createInternals<c- p>(</c-><c- k>this</c-><c- p>);</c->
<c- k>this</c-><c- p>.</c->#internals<c- p>.</c->role <c- o>=</c-> <c- u>"tab"</c-><c- p>;</c->
Expand Down
10 changes: 5 additions & 5 deletions tests/github/WICG/compression/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -815,11 +815,11 @@ <h2 class="heading settled" data-level="7" id="privacy-security"><span class="se
<h2 class="heading settled" data-level="8" id="examples"><span class="secno">8. </span><span class="content">Examples</span><a class="self-link" href="#examples"></a></h2>
<h3 class="heading settled" data-level="8.1" id="example-gzip-compress-stream"><span class="secno">8.1. </span><span class="content">Gzip-compress a stream</span><a class="self-link" href="#example-gzip-compress-stream"></a></h3>
<pre class="example highlight" id="example-470647ba"><a class="self-link" href="#example-470647ba"></a><c- a>const</c-> compressedReadableStream
<c- o>=</c-> inputReadableStream<c- p>.</c->pipeThrough<c- p>(</c-><c- k>new</c-> CompressionStream<c- p>(</c-><c- t>'gzip'</c-><c- p>));</c->
<c- o>=</c-> inputReadableStream<c- p>.</c->pipeThrough<c- p>(</c-><c- ow>new</c-> CompressionStream<c- p>(</c-><c- t>'gzip'</c-><c- p>));</c->
</pre>
<h3 class="heading settled" data-level="8.2" id="example-deflate-compress"><span class="secno">8.2. </span><span class="content">Deflate-compress an ArrayBuffer to a Uint8Array</span><a class="self-link" href="#example-deflate-compress"></a></h3>
<pre class="example highlight" id="example-09e4ae49"><a class="self-link" href="#example-09e4ae49"></a><c- k>async</c-> <c- a>function</c-> compressArrayBuffer<c- p>(</c->input<c- p>)</c-> <c- p>{</c->
<c- a>const</c-> cs <c- o>=</c-> <c- k>new</c-> CompressionStream<c- p>(</c-><c- t>'deflate'</c-><c- p>);</c->
<c- a>const</c-> cs <c- o>=</c-> <c- ow>new</c-> CompressionStream<c- p>(</c-><c- t>'deflate'</c-><c- p>);</c->
<c- a>const</c-> writer <c- o>=</c-> cs<c- p>.</c->writable<c- p>.</c->getWriter<c- p>();</c->
writer<c- p>.</c->write<c- p>(</c->input<c- p>);</c->
writer<c- p>.</c->close<c- p>();</c->
Expand All @@ -833,7 +833,7 @@ <h3 class="heading settled" data-level="8.2" id="example-deflate-compress"><span
output<c- p>.</c->push<c- p>(</c->value<c- p>);</c->
totalSize <c- o>+=</c-> value<c- p>.</c->byteLength<c- p>;</c->
<c- p>}</c->
<c- a>const</c-> concatenated <c- o>=</c-> <c- k>new</c-> Uint8Array<c- p>(</c->totalSize<c- p>);</c->
<c- a>const</c-> concatenated <c- o>=</c-> <c- ow>new</c-> Uint8Array<c- p>(</c->totalSize<c- p>);</c->
<c- a>let</c-> offset <c- o>=</c-> <c- mf>0</c-><c- p>;</c->
<c- k>for</c-> <c- p>(</c-><c- a>const</c-> array <c- k>of</c-> output<c- p>)</c-> <c- p>{</c->
concatenated<c- p>.</c->set<c- p>(</c->array<c- p>,</c-> offset<c- p>);</c->
Expand All @@ -844,9 +844,9 @@ <h3 class="heading settled" data-level="8.2" id="example-deflate-compress"><span
</pre>
<h3 class="heading settled" data-level="8.3" id="example-gzip-decompress"><span class="secno">8.3. </span><span class="content">Gzip-decompress a Blob to Blob</span><a class="self-link" href="#example-gzip-decompress"></a></h3>
<pre class="example highlight" id="example-4d353c2c"><a class="self-link" href="#example-4d353c2c"></a><c- a>function</c-> decompressBlob<c- p>(</c->blob<c- p>)</c-> <c- p>{</c->
<c- a>const</c-> ds <c- o>=</c-> <c- k>new</c-> DecompressionStream<c- p>(</c-><c- t>'gzip'</c-><c- p>);</c->
<c- a>const</c-> ds <c- o>=</c-> <c- ow>new</c-> DecompressionStream<c- p>(</c-><c- t>'gzip'</c-><c- p>);</c->
<c- a>const</c-> decompressionStream <c- o>=</c-> blob<c- p>.</c->stream<c- p>().</c->pipeThrough<c- p>(</c->ds<c- p>);</c->
<c- k>return</c-> <c- k>new</c-> Response<c- p>(</c->decompressedStream<c- p>).</c->blob<c- p>();</c->
<c- k>return</c-> <c- ow>new</c-> Response<c- p>(</c->decompressedStream<c- p>).</c->blob<c- p>();</c->
<c- p>}</c->
</pre>
<h2 class="heading settled" data-level="9" id="acknowledgments"><span class="secno">9. </span><span class="content">Acknowledgments</span><a class="self-link" href="#acknowledgments"></a></h2>
Expand Down
4 changes: 2 additions & 2 deletions tests/github/WICG/construct-stylesheets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2113,9 +2113,9 @@ <h2 class="heading settled" data-level="1" id="motivation"><span class="secno">1
<p>Some user agents might attempt to optimize by sharing internal style sheet representations across different instances of the style element. However, component libraries may use JavaScript to modify the style sheet rules, which will thwart style sheet sharing and have large costs in performance and memory.</p>
<h2 class="heading settled" data-level="2" id="proposed-solution"><span class="secno">2. </span><span class="content">Proposed Solution</span><a class="self-link" href="#proposed-solution"></a></h2>
<p>We are proposing to provide an API for creating stylesheet objects from script, without needing style elements, and also a way to reuse them in multiple places. Script can optionally add, remove, or replace rules from a stylesheet object. Each stylesheet object can be added directly to any number of shadow roots (and/or the top level document).</p>
<pre class="lang-js highlight"><c- a>const</c-> myElementSheet <c- o>=</c-> <c- k>new</c-> CSSStyleSheet<c- p>();</c->
<pre class="lang-js highlight"><c- a>const</c-> myElementSheet <c- o>=</c-> <c- ow>new</c-> CSSStyleSheet<c- p>();</c->
<c- a>class</c-> MyElement <c- k>extends</c-> HTMLElement <c- p>{</c->
constructor<c- p>()</c-> <c- p>{</c->
<c- kr>constructor</c-><c- p>()</c-> <c- p>{</c->
<c- k>super</c-><c- p>();</c->
<c- a>const</c-> shadowRoot <c- o>=</c-> <c- k>this</c-><c- p>.</c->attachShadow<c- p>({</c-> mode<c- o>:</c-> <c- u>"open"</c-> <c- p>});</c->
shadowRoot<c- p>.</c->adoptedStyleSheets <c- o>=</c-> <c- p>[</c->myElementSheet<c- p>];</c->
Expand Down
4 changes: 2 additions & 2 deletions tests/github/WICG/content-index/spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -779,10 +779,10 @@ <h3 class="heading settled" data-level="1.1" id="example"><span class="secno">1.
<pre class="lang-js highlight"><c- a>function</c-> deleteArticleResources<c- p>(</c->id<c- p>)</c-> <c- p>{</c->
<c- k>return</c-> Promise<c- p>.</c->all<c- p>([</c->
caches<c- p>.</c->open<c- p>(</c-><c- t>'offline-articles'</c-><c- p>)</c->
<c- p>.</c->then<c- p>(</c->articlesCache <c- p>=></c-> articlesCache<c- p>.</c-><c- k>delete</c-><c- p>(</c-><c- sb>`/article/</c-><c- si>${</c->id<c- si>}</c-><c- sb>`</c-><c- p>)),</c->
<c- p>.</c->then<c- p>(</c->articlesCache <c- p>=></c-> articlesCache<c- p>.</c-><c- ow>delete</c-><c- p>(</c-><c- sb>`/article/</c-><c- si>${</c->id<c- si>}</c-><c- sb>`</c-><c- p>)),</c->
<c- c1>// This is a no-op if the function was called as a result of the</c->
<c- c1>// `contentdelete` event.</c->
self<c- p>.</c->registration<c- p>.</c->index<c- p>.</c-><c- k>delete</c-><c- p>(</c->id<c- p>),</c->
self<c- p>.</c->registration<c- p>.</c->index<c- p>.</c-><c- ow>delete</c-><c- p>(</c->id<c- p>),</c->
<c- p>]);</c->
<c- p>}</c->

Expand Down
6 changes: 3 additions & 3 deletions tests/github/WICG/cookie-store/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ <h3 class="heading settled" data-level="1.4" id="intro-modify"><span class="secn
<div class="example" id="example-7990c896">
<a class="self-link" href="#example-7990c896"></a> Delete a cookie:
<pre class="language-js highlight"><c- k>try</c-> <c- p>{</c->
<c- k>await</c-> cookieStore<c- p>.</c-><c- k>delete</c-><c- p>(</c-><c- t>'session_id'</c-><c- p>);</c->
<c- k>await</c-> cookieStore<c- p>.</c-><c- ow>delete</c-><c- p>(</c-><c- t>'session_id'</c-><c- p>);</c->
<c- p>}</c-> <c- k>catch</c-> <c- p>(</c->e<c- p>)</c-> <c- p>{</c->
console<c- p>.</c->error<c- p>(</c-><c- sb>`Failed to delete cookie: </c-><c- si>${</c->e<c- si>}</c-><c- sb>`</c-><c- p>);</c->
<c- p>}</c->
Expand All @@ -948,11 +948,11 @@ <h3 class="heading settled" data-level="1.5" id="intro-monitor"><span class="sec
<a class="self-link" href="#example-7e599641"></a> Register for <code>change</code> events in documents:
<pre class="language-js highlight">cookieStore<c- p>.</c->addEventListener<c- p>(</c-><c- t>'change'</c-><c- p>,</c-> event <c- p>=></c-> <c- p>{</c->
console<c- p>.</c->log<c- p>(</c-><c- sb>`</c-><c- si>${</c->event<c- p>.</c->changed<c- p>.</c->length<c- si>}</c-><c- sb> changed cookies`</c-><c- p>);</c->
<c- k>for</c-> <c- p>(</c-><c- a>const</c-> cookie <c- k>in</c-> event<c- p>.</c->changed<c- p>)</c->
<c- k>for</c-> <c- p>(</c-><c- a>const</c-> cookie <c- ow>in</c-> event<c- p>.</c->changed<c- p>)</c->
console<c- p>.</c->log<c- p>(</c-><c- sb>`Cookie </c-><c- si>${</c->cookie<c- p>.</c->name<c- si>}</c-><c- sb> changed to </c-><c- si>${</c->cookie<c- p>.</c->value<c- si>}</c-><c- sb>`</c-><c- p>);</c->

console<c- p>.</c->log<c- p>(</c-><c- sb>`</c-><c- si>${</c->event<c- p>.</c->deleted<c- p>.</c->length<c- si>}</c-><c- sb> deleted cookies`</c-><c- p>);</c->
<c- k>for</c-> <c- p>(</c-><c- a>const</c-> cookie <c- k>in</c-> event<c- p>.</c->deleted<c- p>)</c->
<c- k>for</c-> <c- p>(</c-><c- a>const</c-> cookie <c- ow>in</c-> event<c- p>.</c->deleted<c- p>)</c->
console<c- p>.</c->log<c- p>(</c-><c- sb>`Cookie </c-><c- si>${</c->cookie<c- p>.</c->name<c- si>}</c-><c- sb> deleted`</c-><c- p>);</c->
<c- p>});</c->
</pre>
Expand Down
10 changes: 5 additions & 5 deletions tests/github/WICG/custom-state-pseudo-class/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ <h3 class="heading settled" data-level="1.2" id="solution"><span class="secno">1
<c- c>&lt;!-- Basic usage: --></c->
<c- p>&lt;</c-><c- f>script</c-><c- p>></c->
<c- a>class</c-> LabeledCheckbox <c- k>extends</c-> HTMLElement <c- p>{</c->
constructor<c- p>()</c-> <c- p>{</c->
<c- kr>constructor</c-><c- p>()</c-> <c- p>{</c->
<c- k>super</c-><c- p>();</c->
<c- k>this</c-><c- p>.</c->_internals <c- o>=</c-> <c- k>this</c-><c- p>.</c->attachInternals<c- p>();</c->
<c- k>this</c-><c- p>.</c->addEventListener<c- p>(</c-><c- t>'click'</c-><c- p>,</c-> <c- k>this</c-><c- p>.</c->_onClick<c- p>.</c->bind<c- p>(</c-><c- k>this</c-><c- p>));</c->
Expand All @@ -690,7 +690,7 @@ <h3 class="heading settled" data-level="1.2" id="solution"><span class="secno">1
<c- k>if</c-> <c- p>(</c->flag<c- p>)</c->
<c- k>this</c-><c- p>.</c->_internals<c- p>.</c->states<c- p>.</c->add<c- p>(</c-><c- t>'--checked'</c-><c- p>);</c->
<c- k>else</c->
<c- k>this</c-><c- p>.</c->_internals<c- p>.</c->states<c- p>.</c-><c- k>delete</c-><c- p>(</c-><c- t>'--checked'</c-><c- p>);</c->
<c- k>this</c-><c- p>.</c->_internals<c- p>.</c->states<c- p>.</c-><c- ow>delete</c-><c- p>(</c-><c- t>'--checked'</c-><c- p>);</c->
<c- p>}</c->

_onClick<c- p>(</c->event<c- p>)</c-> <c- p>{</c->
Expand All @@ -710,7 +710,7 @@ <h3 class="heading settled" data-level="1.2" id="solution"><span class="secno">1

<c- p>&lt;</c-><c- f>script</c-><c- p>></c->
<c- a>class</c-> QuestionBox <c- k>extends</c-> HTMLElement <c- p>{</c->
constructor<c- p>()</c-> <c- p>{</c->
<c- kr>constructor</c-><c- p>()</c-> <c- p>{</c->
<c- k>super</c-><c- p>();</c->
<c- a>const</c-> shadowRoot <c- o>=</c-> <c- k>this</c-><c- p>.</c->attachShadow<c- p>({</c->mode<c- o>:</c-> <c- t>'closed'</c-><c- p>});</c->
shadowRoot<c- p>.</c->innerHTML <c- o>=</c->
Expand Down Expand Up @@ -760,8 +760,8 @@ <h2 class="heading settled" data-level="2" id="exposing"><span class="secno">2.
states. For example, a state called <code>readyState</code> with <code>"loading"</code>, <code>"interactive"</code>, and <code>"complete"</code> values can be mapped to three exclusive boolean states, <code>"--loading"</code>, <code>"--interactive"</code>, and <code>"--complete"</code>.
<pre class="lang-js highlight"><c- c1>// Change the readyState from anything to "complete".</c->
<c- k>this</c-><c- p>.</c->_readyState <c- o>=</c-> <c- u>"complete"</c-><c- p>;</c->
<c- k>this</c-><c- p>.</c->_internals<c- p>.</c-><code class="idl"><a data-link-type="idl" href="#dom-elementinternals-states" id="ref-for-dom-elementinternals-states②">states</a></code><c- p>.</c-><c- k>delete</c-><c- p>(</c-><c- u>"--loading"</c-><c- p>);</c->
<c- k>this</c-><c- p>.</c->_internals<c- p>.</c-><code class="idl"><a data-link-type="idl" href="#dom-elementinternals-states" id="ref-for-dom-elementinternals-states③">states</a></code><c- p>.</c-><c- k>delete</c-><c- p>(</c-><c- u>"--interactive"</c-><c- p>);</c->
<c- k>this</c-><c- p>.</c->_internals<c- p>.</c-><code class="idl"><a data-link-type="idl" href="#dom-elementinternals-states" id="ref-for-dom-elementinternals-states②">states</a></code><c- p>.</c-><c- ow>delete</c-><c- p>(</c-><c- u>"--loading"</c-><c- p>);</c->
<c- k>this</c-><c- p>.</c->_internals<c- p>.</c-><code class="idl"><a data-link-type="idl" href="#dom-elementinternals-states" id="ref-for-dom-elementinternals-states③">states</a></code><c- p>.</c-><c- ow>delete</c-><c- p>(</c-><c- u>"--interactive"</c-><c- p>);</c->
<c- k>this</c-><c- p>.</c->_internals<c- p>.</c-><code class="idl"><a data-link-type="idl" href="#dom-elementinternals-states" id="ref-for-dom-elementinternals-states④">states</a></code><c- p>.</c-><code class="idl"><a data-link-type="idl" href="#dom-customstateset-add" id="ref-for-dom-customstateset-add②">add</a></code><c- p>(</c-><c- u>"--complete"</c-><c- p>);</c->
</pre>
<p class="issue" id="issue-8463f5b0"><a class="self-link" href="#issue-8463f5b0"></a> Support non-boolean states. <a href="/~https://github.com/WICG/custom-state-pseudo-class/issues/4">[Issue #WICG/custom-state-pseudo-class#4]</a></p>
Expand Down
2 changes: 1 addition & 1 deletion tests/github/WICG/element-timing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ <h3 class="heading settled" data-level="1.2" id="sec-example"><span class="secno
<c- p>&lt;</c-><c- f>p</c-> <c- e>elementtiming</c-><c- o>=</c-><c- s>'important-paragraph'</c-><c- p>></c->This is text I care about.<c- p>&lt;/</c-><c- f>p</c-><c- p>></c->
...
<c- p>&lt;</c-><c- f>script</c-><c- p>></c->
<c- a>const</c-> observer <c- o>=</c-> <c- k>new</c-> PerformanceObserver<c- p>((</c->list<c- p>)</c-> <c- p>=></c-> <c- p>{</c->
<c- a>const</c-> observer <c- o>=</c-> <c- ow>new</c-> PerformanceObserver<c- p>((</c->list<c- p>)</c-> <c- p>=></c-> <c- p>{</c->
<c- a>let</c-> perfEntries <c- o>=</c-> list<c- p>.</c->getEntries<c- p>();</c->
<c- c1>// Process the entries by iterating over them.</c->
<c- p>});</c->
Expand Down
Loading

0 comments on commit a555de8

Please sign in to comment.