-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to satisfy CSS condition #12089
Comments
Cross-browser testing reveals inconsistent results. Below is code I tested in Canary 90, Edge 88, Opera 74, and Firefox 85. If Canary shows support for both pseudo elements but only suppress the first summary caret. Firefox is the only browser that behaves as expected. This may not be the best way to test this feature. Clearly, we need to use Here is the HTML used for the test described above:
|
I am also encountering this issue which is resulting in a hit to my Best Practises score. |
This seems like an issue with Chrome being to aggressive in emitting a deprecation. I'd expect the CSS you have to not trigger this, since it's behind a In the meantime, we can consider ignoring this deprecation in Lighthouse. |
I've now logged it here: https://bugs.chromium.org/p/chromium/issues/detail?id=1189809 |
FYI: Safari doesn't support |
Yikes! Sorry about that oversight. That actually complicates matters further, because it's not possible to wrap the use of ::-webkit-details-marker in a @supports block to provide compatibility to browsers that require the old method. And by my new test, older Chrome (I tested 75) and current Opera (74) and Safari (14) all need the fallback CSS. Try this revised code in older and current Chrome, Firefox, Edge, Opera, and Safari and see;
|
The deprecation was reverted in Chrome, so this shouldn't be an issue in Chrome Canary anymore. It will remain in M90 (Apr 13) but be gone in M91 (May 25). We can't do anything about the false-warning for M90. We might consider blocking the warning in the next LH release, so at least the CLI and PSI will ignore this. |
thanks |
Chrome Canary: 90.0.4417.0 (Official Build) canary (64-bit)
OS: Windows 8.1
Lighthouse: 7.0.1
Lighthouse 7.0.1 now issues this deprecation warning when it encounters
::webkit-details-marker
:The info at that link states:
This is great. However,
::marker
isn't supported on Safari or Opera (or older versions of Chrome). See support table:MDN on ::marker
This means that I need to use fallback CSS for browsers who do not support
::marker
. This is essential, because I'm suppressing the default triangle marker in<summary>
elements in my site. Thus, my cross-browser CSS is:However, Canary 90 cannot detect that I'm filtering non-support of
::marker
when I use the fallback of::webkit-details-marker
:The presence of the fallback CSS lowers my Lighthouse score.
Shouldn't Chromium/Lighthouse "see" that the pseudo-element is being rendered conditionally on support, and thus not issue a deprecation warning? Alternatively, how can I write my CSS to suppress this warning, and therefore not be penalized by Lighthouse?
So, I am using
::marker
, but by necessity I'm providing a fallback for non-compliant browsers, and Lighthouse is penalizing me for using the fallback. (I tried posting this issue to this group: Chromium Discuss , but, reason unknown, it wouldn't post.)Please help!
The text was updated successfully, but these errors were encountered: