forked from rosa/hakurei
Compare commits
17 Commits
dbdde39e9a
...
c7296d41e5
| Author | SHA1 | Date | |
|---|---|---|---|
|
c7296d41e5
|
|||
|
6094bd1819
|
|||
|
5c7ca7f320
|
|||
|
82edd7d939
|
|||
|
51cedb8362
|
|||
|
68cb328348
|
|||
|
7404e9b1a4
|
|||
|
4435b7ae56
|
|||
|
550fd6f724
|
|||
|
cd46234892
|
|||
|
7697f44d94
|
|||
|
66c391d2eb
|
|||
|
246641892d
|
|||
|
0a647a0fff
|
|||
|
30a6c56d05
|
|||
|
e14702492e
|
|||
|
2dbc9e9a11
|
@@ -31,17 +31,11 @@ details.test-node {
|
|||||||
}
|
}
|
||||||
&.success > summary::marker {
|
&.success > summary::marker {
|
||||||
/*
|
/*
|
||||||
* WebKit only supports color and font-size properties in ::marker [1],
|
* WebKit only supports color and font-size properties in ::marker, and
|
||||||
* and its ::-webkit-details-marker only supports hiding the marker
|
* its ::-webkit-details-marker doesn't seem to work whatsoever; thus,
|
||||||
* entirely [2], contrary to mdn's example [3]; thus, set a color as
|
* set a color as a fallback: while it may be confusing for colorblind
|
||||||
* a fallback: while it may not be accessible for colorblind
|
* individuals, it's better than no indication of a test's state.
|
||||||
* individuals, it's better than no indication of a test's state for
|
* See: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::marker#browser_compatibility
|
||||||
* anyone, as that there's no other way to include an indication in the
|
|
||||||
* marker on WebKit.
|
|
||||||
*
|
|
||||||
* [1]: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::marker#browser_compatibility
|
|
||||||
* [2]: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/summary#default_style
|
|
||||||
* [3]: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/summary#changing_the_summarys_icon
|
|
||||||
*/
|
*/
|
||||||
color: var(--fg);
|
color: var(--fg);
|
||||||
content: url("/static/success-closed.svg");
|
content: url("/static/success-closed.svg");
|
||||||
|
|||||||
@@ -297,7 +297,7 @@ export class DOMReporter implements Reporter {
|
|||||||
outer: for (const d of parent.children) {
|
outer: for (const d of parent.children) {
|
||||||
for (const s of d.children) {
|
for (const s of d.children) {
|
||||||
if (!(s instanceof HTMLElement)) continue;
|
if (!(s instanceof HTMLElement)) continue;
|
||||||
if (!(s.tagName === "SUMMARY" && s.innerText === node)) continue;
|
if (s.tagName !== "SUMMARY" || s.innerText !== node) continue;
|
||||||
child = d;
|
child = d;
|
||||||
break outer;
|
break outer;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user