Is there any performance difference between #?#:-abp-has()
and #?#:has()
on browsers that support the has selector?
#21166
-
With the release of Firefox 121 in less that two weeks (December 19th) along with the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
It should be same like on Chrome 105+ => can be used as CSS 4. It looks CSSTree implementation made simple You can check on Beta/Nightly in how method was forced (JS with random attributes or CSS 4). As for the hiding speed, the blinking is very minimal (the only limitation is CSS and browser logic now). |
Beta Was this translation helpful? Give feedback.
#?#:-abp-has()
is equivalent to##:has()
.Never mind,#?#:has()
will force the filter to be procedural, this is to ensure there is a fallback syntax should the result be unexpected when using the native form.#?#:has()
is also compiled to native if supported by the browser.