ExtendedCss icon indicating copy to clipboard operation
ExtendedCss copied to clipboard

Deprecate ':remove()' pseudo-class

Open slavaleleka opened this issue 3 years ago • 2 comments

Both :remove() pseudo-class and remove pseudo-property works the same, but the pseudo-property usage seems more recommended as it is related to "actions" which should be applied to elements, since pseudo-classes is more about elements matching.

Deprecation may be implemented in two steps:

  1. mark the :remove() pseudo-class as deprecated but still supported
  2. remove support of the pseudo-class

slavaleleka avatar Jan 18 '23 21:01 slavaleleka

How will this affect projects that do not convert this in :style(remove: true)?

krystian3w avatar Jan 25 '23 09:01 krystian3w

Generally, it won't affect anyone. The rules that use :remove() will be automatically converted to the ExtCSS syntax, we just don't want to have this logic in two places (ExtCSS and CoreLibs/tsurlfilter).

ameshkov avatar Jan 25 '23 11:01 ameshkov