mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
Once we know the final value of the `content` property for a pseudo-element, we can bail early if the value is `none` or `normal` (note that `normal` only applies to ::before and ::after). In those cases, no pseudo-element will be generated, so everything that follows in StyleComputer would be wasted work. This noticeably improves performance on many pages, such as https://tailwindcss.com/ where style updates go from 360ms -> 250ms.
148 KiB
148 KiB