Skip to content

Plugin links to external polyfill packages #914

Closed
@dpschen

Description

@dpschen

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

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 and WICG/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions