forked from rosa/hakurei
Compare commits
17 Commits
c7296d41e5
...
dbdde39e9a
| Author | SHA1 | Date | |
|---|---|---|---|
|
dbdde39e9a
|
|||
|
6c47307aab
|
|||
|
a4f801ed4c
|
|||
|
4333a0d1f6
|
|||
|
99d9f37684
|
|||
|
935e11cae6
|
|||
|
9193dbf18d
|
|||
|
b5cad5b3f5
|
|||
|
a2838c0315
|
|||
|
18b1bad8b9
|
|||
|
63296ec6e9
|
|||
|
2073e17b95
|
|||
|
e8e1fcf956
|
|||
|
a450f1e887
|
|||
|
91a8bc4682
|
|||
|
a2ef5d4ccb
|
|||
|
c0c45eea3a
|
@@ -31,11 +31,17 @@ details.test-node {
|
||||
}
|
||||
&.success > summary::marker {
|
||||
/*
|
||||
* WebKit only supports color and font-size properties in ::marker, and
|
||||
* its ::-webkit-details-marker doesn't seem to work whatsoever; thus,
|
||||
* set a color as a fallback: while it may be confusing for colorblind
|
||||
* individuals, it's better than no indication of a test's state.
|
||||
* See: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::marker#browser_compatibility
|
||||
* WebKit only supports color and font-size properties in ::marker [1],
|
||||
* and its ::-webkit-details-marker only supports hiding the marker
|
||||
* entirely [2], contrary to mdn's example [3]; thus, set a color as
|
||||
* a fallback: while it may not be accessible for colorblind
|
||||
* individuals, it's better than no indication of a test's state for
|
||||
* 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);
|
||||
content: url("/static/success-closed.svg");
|
||||
|
||||
@@ -297,7 +297,7 @@ export class DOMReporter implements Reporter {
|
||||
outer: for (const d of parent.children) {
|
||||
for (const s of d.children) {
|
||||
if (!(s instanceof HTMLElement)) continue;
|
||||
if (s.tagName !== "SUMMARY" || s.innerText !== node) continue;
|
||||
if (!(s.tagName === "SUMMARY" && s.innerText === node)) continue;
|
||||
child = d;
|
||||
break outer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user