mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
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
11 lines
397 B
Plaintext
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;
|