Description
Kind of a follow up of #860
If I'm not mistaken I found out another issue that made it harder for me to use the focus-within-pseudo-class
polyfill properly:
postcss-focus-within
Actual Description in READMEs
In the postcss-preset-env packages README.md under
Plugins list > Plugins that need client library > focus-within-pseudo-class
- Library links to
https://github.com/jsxtools/focus-within
and - Polyfill links to
https://github.com/jsxtools/focus-within/blob/master/README-BROWSER.md
.
Expected description in READMEs
A) I think those links should probably be replaced with a reference to
https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-within#browser
Since postcss-focus-within/src/browser.js
contains already a polyfill, correct?
OR if I understood this wrong
B) The links from Library and Polyfill should be referenced at the top of the README of postcss-focus-within in a similar way that the README of postcss-focus-visible mentions its polyfill:
PostCSS Focus Visible lets you use the :focus-visible pseudo-class in CSS, following the Selectors Level 4 specification.
It is the companion to the focus-visible polyfill. Note that this plugin alone is not sufficient to polyfill for :focus-visible and that you need the browser's polyfill as well.
postcss-focus-visible
Actual Description in READMEs
In the quote the last paragraph browsers's polyfill
confused me as well. Does this refer to:
- some kind of browser part of the csstool/postcss-plugin that I always need in order to get the postcss plugin running
OR
- some additional external polyfill package to make the support work, like it's the case with
plugins/postcss-focus-visible
andWICG/focus-visible
.
Expected description in READMEs
If the answer is the first point maybe the description could be improved similar to:
It is the companion to the WICG/focus-visible polyfill. So you need to install WICG/focus-visible, because this plugin alone is not sufficient to polyfill for :focus-visible.