Files
atom/static/core-ui/utils.less
Amin Yahyaabadi 6333223063 performance: add more CSS containment to text-editor (#21561)
This adds more [CSS containment](https://drafts.csswg.org/css-contain/#contain-property) to text-editor CSS classes. This results in performance improvements by giving the hint to the browser that the size/paint/layout of these elements does not affect other elements around them.

Fixes https://github.com/atom/atom/pull/21561#discussion_r515201915
2021-01-29 20:22:00 +03:00

11 lines
397 B
Plaintext

// CSS containment variables.
// The words after `but` explicitly show the excluded/incompatible values.
@contain_all: layout size paint style;
@contain_except_layout: size paint style;
@contain_except_size: layout paint style;
@contain_except_paint: layout size style;
@contain_except_layout_size: paint style;
@contain_except_layout_paint: size style;
@contain_except_size_paint: layout style;