From 0a7424360ceb939364efe41c4d46869ed9793bed Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Fri, 3 Sep 2021 12:19:36 +0200 Subject: [PATCH] Update to CSS Containment Module Level 2 * css-mode.el (css-property-alist): Update contain, and add content-visibility. --- lisp/textmodes/css-mode.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 8689c94bc58..a39a62aa688 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -274,9 +274,10 @@ ("color" color) ("opacity" alphavalue) - ;; CSS Containment Module Level 1 - ;; (https://www.w3.org/TR/css-contain-1/#property-index) - ("contain" "none" "strict" "content" "size" "layout" "paint") + ;; CSS Containment Module Level 2 + ;; (https://www.w3.org/TR/css-contain-2/#property-index) + ("contain" "none" "strict" "content" "size" "layout" "style" "paint") + ("content-visibility" "visible" "auto" "hidden") ;; CSS Grid Layout Module Level 2 ;; (https://www.w3.org/TR/css-grid-2/#property-index) -- 2.39.2