csstools/postcss-focus-visible

Why don't we merge the declaration blocks?

Closed this issue · 1 comments

Hello, thank you for this great plugin!

However, according to the docs:

:focus:not(:focus-visible) {
  outline: none;
}

/* becomes */

:focus:not(.focus-visible) {
  outline: none;
}

:focus:not(:focus-visible) {
  outline: none;
}

Why not merge the declaration blocks?

:focus:not(:focus-visible) {
  outline: none;
}

/* becomes */

:focus:not(:focus-visible), :focus:not(.focus-visible) {
  outline: none;
}

Thanks.

@slavafomin, we cannot merge the rules because browsers which do not support :focus-within will, unfortunately, throw out the entire selector.