Skip to content

Commit 47d59b6

Browse files
committed
Markup: Fix tests
Fixes addition of data-attribute on spec container and inline css
1 parent 58cc6d2 commit 47d59b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+623
-197
lines changed

css/elements.css

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ tr.del > td {
945945
align-self: center;
946946
}
947947

948-
#menu-pins-list > li:before,
948+
#menu-pins-list > li::before,
949949
#menu-pins-list > li > .unpin {
950950
flex-shrink: 0;
951951
flex-grow: 0;
@@ -955,7 +955,7 @@ tr.del > td {
955955
background: none;
956956
border: none;
957957
}
958-
#menu-pins-list > li:before,
958+
#menu-pins-list > li::before,
959959
#menu-pins-list > li > .unpin:hover {
960960
background: #ccc;
961961
}
@@ -969,7 +969,7 @@ tr.del > td {
969969
color: #bb1212;
970970
}
971971

972-
#menu-pins-list > li:before {
972+
#menu-pins-list > li::before {
973973
content: counter(pins-counter);
974974
counter-increment: pins-counter;
975975
font-size: 16px;
@@ -1147,7 +1147,7 @@ a.menu-pane-header-production {
11471147
overflow-y: auto;
11481148
}
11491149

1150-
li.menu-search-result-clause:before {
1150+
li.menu-search-result-clause::before {
11511151
content: 'clause';
11521152
width: 40px;
11531153
display: inline-block;
@@ -1156,7 +1156,7 @@ li.menu-search-result-clause:before {
11561156
color: #666;
11571157
font-size: 75%;
11581158
}
1159-
li.menu-search-result-op:before {
1159+
li.menu-search-result-op::before {
11601160
content: 'op';
11611161
width: 40px;
11621162
display: inline-block;
@@ -1166,7 +1166,7 @@ li.menu-search-result-op:before {
11661166
font-size: 75%;
11671167
}
11681168

1169-
li.menu-search-result-prod:before {
1169+
li.menu-search-result-prod::before {
11701170
content: 'prod';
11711171
width: 40px;
11721172
display: inline-block;
@@ -1176,7 +1176,7 @@ li.menu-search-result-prod:before {
11761176
font-size: 75%;
11771177
}
11781178

1179-
li.menu-search-result-term:before {
1179+
li.menu-search-result-term::before {
11801180
content: 'term';
11811181
width: 40px;
11821182
display: inline-block;
@@ -1206,10 +1206,10 @@ li.menu-search-result-term:before {
12061206
white-space: nowrap;
12071207
}
12081208

1209-
#menu-trace-list li .secnum:after {
1209+
#menu-trace-list li .secnum::after {
12101210
content: ' ';
12111211
}
1212-
#menu-trace-list li:before {
1212+
#menu-trace-list li::before {
12131213
content: counter(item) ' ';
12141214
background-color: #222;
12151215
counter-increment: item;
@@ -1296,8 +1296,8 @@ li.menu-search-result-term:before {
12961296
text-decoration: underline;
12971297
}
12981298

1299-
.toolbox:after,
1300-
.toolbox:before {
1299+
.toolbox::after,
1300+
.toolbox::before {
13011301
top: 100%;
13021302
left: 15px;
13031303
border: solid transparent;
@@ -1308,13 +1308,13 @@ li.menu-search-result-term:before {
13081308
pointer-events: none;
13091309
}
13101310

1311-
.toolbox:after {
1311+
.toolbox::after {
13121312
border-color: rgba(0, 0, 0, 0);
13131313
border-top-color: #ddd;
13141314
border-width: 10px;
13151315
margin-left: -10px;
13161316
}
1317-
.toolbox:before {
1317+
.toolbox::before {
13181318
border-color: rgba(204, 204, 204, 0);
13191319
border-top-color: #aaa;
13201320
border-width: 12px;
@@ -1353,7 +1353,7 @@ li.menu-search-result-term:before {
13531353
display: flex;
13541354
}
13551355

1356-
#references-pane-close:after {
1356+
#references-pane-close::after {
13571357
content: '\2716';
13581358
float: right;
13591359
cursor: pointer;
@@ -1368,7 +1368,7 @@ li.menu-search-result-term:before {
13681368
padding-right: 5px;
13691369
}
13701370

1371-
emu-normative-optional:before {
1371+
emu-normative-optional::before {
13721372
display: block;
13731373
color: #884400;
13741374
content: "NORMATIVE OPTIONAL";

test/baselines/generated-reference/algorithm-replacements.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<li><span>Jump to search box</span><code>/</code></li>
88
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
99
<li><span>Jump to <i>n</i>th pin</span><code>1-9</code></li>
10-
</ul></div><div id="spec-container">
10+
</ul></div><div id="spec-container" data-shortname="">
1111

1212
<emu-clause id="test">
1313
<h1><span class="secnum">1</span> Title</h1>

test/baselines/generated-reference/algorithms.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<li><span>Jump to search box</span><code>/</code></li>
88
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
99
<li><span>Jump to <i>n</i>th pin</span><code>1-9</code></li>
10-
</ul></div><div id="spec-container">
10+
</ul></div><div id="spec-container" data-shortname="">
1111
<emu-biblio href="./algorithmsBiblio.json"></emu-biblio>
1212
<emu-alg><ol><li>Can call <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> in this spec: <emu-xref aoid="Internal" id="_ref_0"><a href="#sec-internal">Internal</a></emu-xref>();</li><li>Can call <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> in ES6: <emu-xref aoid="ReturnIfAbrupt"><a href="https://tc39.es/ecma262/#sec-returnifabrupt">ReturnIfAbrupt</a></emu-xref>(<var>completion</var>);</li><li>Can call <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> in a biblio file: <emu-xref aoid="Biblio"><a href="http://example.com/fooSite.html#sec-biblio">Biblio</a></emu-xref>();</li><li>Unfound <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> just don't link: Unfound();</li><li>Can prefix with !&nbsp;and ?.<ol><li>Let <var>foo</var> be ?&nbsp;<emu-xref aoid="Internal" id="_ref_1"><a href="#sec-internal">Internal</a></emu-xref>();</li><li>Set <var>foo</var> to !&nbsp;<emu-xref aoid="Internal" id="_ref_2"><a href="#sec-internal">Internal</a></emu-xref>();</li><li>Set <var>foo</var> to !&nbsp;SDO of <var>operation</var>.</li><li>Set <var>foo</var> to !&nbsp;<var>operation</var>.<var class="field">[[MOP]]</var>().</li></ol></li><li>A <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">Record</a></emu-xref> looks like this: <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">Record</a></emu-xref> { <var class="field">[[Key]]</var>: 0&nbsp;}.</li><li>A <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref> looks like this: « 0, 1&nbsp;».</li></ol></emu-alg>
1313

0 commit comments

Comments
 (0)