I'm suppressing the default triangle marker in <summary> elements in my site. The info at
Feature: 'display: list-item' by default for <summary> states:
The default value of CSS 'display' property for <summary> is changed to 'list-item' from 'block'.
We also support '::marker' pseudo element selector for <summary>, and remove '::-webkit-details-marker' pseudo element selector.
Before this change, developers did the following in order to hide the details marker:
summary::-webkit-details-marker {
display: none;
margin-inline-end: 0;
}
Now developers can do:
summary {
display: block;
}
or
summary {
list-style-type: none;
}
Chrome v. 89 and below and all versions of Safari require the older method described above. My CSS is therefore:
/* Suppress caret: Needed for Chrome >= 89: */
@supports (::marker) {
.main summary {
list-style: none;
}
}
/* Suppress caret: Needed for Chrome < 89, Safari */
@supports not (::marker) {
.main summary::-webkit-details-marker {
display: none;
}
}
However, Canary 90 issues this warning in the console:
How can I write my CSS to suppress this warning? I am using ::marker, and I'm providing a fallback for non-compliant browsers.