Skip to content

Commit

Permalink
Markup: Fix tests
Browse files Browse the repository at this point in the history
Fixes addition of data-attribute on spec container and inline css
  • Loading branch information
gesa committed Jun 14, 2024
1 parent 58cc6d2 commit 47d59b6
Show file tree
Hide file tree
Showing 45 changed files with 623 additions and 197 deletions.
30 changes: 15 additions & 15 deletions css/elements.css
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ tr.del > td {
align-self: center;
}

#menu-pins-list > li:before,
#menu-pins-list > li::before,
#menu-pins-list > li > .unpin {
flex-shrink: 0;
flex-grow: 0;
Expand All @@ -955,7 +955,7 @@ tr.del > td {
background: none;
border: none;
}
#menu-pins-list > li:before,
#menu-pins-list > li::before,
#menu-pins-list > li > .unpin:hover {
background: #ccc;
}
Expand All @@ -969,7 +969,7 @@ tr.del > td {
color: #bb1212;
}

#menu-pins-list > li:before {
#menu-pins-list > li::before {
content: counter(pins-counter);
counter-increment: pins-counter;
font-size: 16px;
Expand Down Expand Up @@ -1147,7 +1147,7 @@ a.menu-pane-header-production {
overflow-y: auto;
}

li.menu-search-result-clause:before {
li.menu-search-result-clause::before {
content: 'clause';
width: 40px;
display: inline-block;
Expand All @@ -1156,7 +1156,7 @@ li.menu-search-result-clause:before {
color: #666;
font-size: 75%;
}
li.menu-search-result-op:before {
li.menu-search-result-op::before {
content: 'op';
width: 40px;
display: inline-block;
Expand All @@ -1166,7 +1166,7 @@ li.menu-search-result-op:before {
font-size: 75%;
}

li.menu-search-result-prod:before {
li.menu-search-result-prod::before {
content: 'prod';
width: 40px;
display: inline-block;
Expand All @@ -1176,7 +1176,7 @@ li.menu-search-result-prod:before {
font-size: 75%;
}

li.menu-search-result-term:before {
li.menu-search-result-term::before {
content: 'term';
width: 40px;
display: inline-block;
Expand Down Expand Up @@ -1206,10 +1206,10 @@ li.menu-search-result-term:before {
white-space: nowrap;
}

#menu-trace-list li .secnum:after {
#menu-trace-list li .secnum::after {
content: ' ';
}
#menu-trace-list li:before {
#menu-trace-list li::before {
content: counter(item) ' ';
background-color: #222;
counter-increment: item;
Expand Down Expand Up @@ -1296,8 +1296,8 @@ li.menu-search-result-term:before {
text-decoration: underline;
}

.toolbox:after,
.toolbox:before {
.toolbox::after,
.toolbox::before {
top: 100%;
left: 15px;
border: solid transparent;
Expand All @@ -1308,13 +1308,13 @@ li.menu-search-result-term:before {
pointer-events: none;
}

.toolbox:after {
.toolbox::after {
border-color: rgba(0, 0, 0, 0);
border-top-color: #ddd;
border-width: 10px;
margin-left: -10px;
}
.toolbox:before {
.toolbox::before {
border-color: rgba(204, 204, 204, 0);
border-top-color: #aaa;
border-width: 12px;
Expand Down Expand Up @@ -1353,7 +1353,7 @@ li.menu-search-result-term:before {
display: flex;
}

#references-pane-close:after {
#references-pane-close::after {
content: '\2716';
float: right;
cursor: pointer;
Expand All @@ -1368,7 +1368,7 @@ li.menu-search-result-term:before {
padding-right: 5px;
}

emu-normative-optional:before {
emu-normative-optional::before {
display: block;
color: #884400;
content: "NORMATIVE OPTIONAL";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
<li><span>Jump to <i>n</i>th pin</span><code>1-9</code></li>
</ul></div><div id="spec-container">
</ul></div><div id="spec-container" data-shortname="">

<emu-clause id="test">
<h1><span class="secnum">1</span> Title</h1>
Expand Down
2 changes: 1 addition & 1 deletion test/baselines/generated-reference/algorithms.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
<li><span>Jump to <i>n</i>th pin</span><code>1-9</code></li>
</ul></div><div id="spec-container">
</ul></div><div id="spec-container" data-shortname="">
<emu-biblio href="./algorithmsBiblio.json"></emu-biblio>
<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>

Expand Down
Loading

0 comments on commit 47d59b6

Please sign in to comment.