lightningcss icon indicating copy to clipboard operation
lightningcss copied to clipboard

Support for `::highlight()` pseudo-element

Open hejhi opened this issue 1 year ago • 1 comments

Would love to see support for the ::highlight() pseudo-element, which appears to be not supported at the moment.

hejhi avatar Nov 29 '24 18:11 hejhi

Hi @devongovett, Do you think we need to validate the allowable properties for ::highlight(), perhaps by implementing another declaration parser that integrates with the current one, or is basic support in the SelectorParser sufficient?

lucasweng avatar Apr 30 '25 13:04 lucasweng

ehh not sure it's worth the extra validation. we could just add it here https://github.com/parcel-bundler/lightningcss/blob/master/src/selector.rs#L259

devongovett avatar Jul 09 '25 04:07 devongovett