]> git.eshelyaron.com Git - emacs.git/commitdiff
Update to CSS Containment Module Level 2
authorTheodor Thornhill <theo@thornhill.no>
Fri, 3 Sep 2021 10:19:36 +0000 (12:19 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 3 Sep 2021 12:05:49 +0000 (14:05 +0200)
* css-mode.el (css-property-alist): Update contain, and add
content-visibility.

lisp/textmodes/css-mode.el

index 8689c94bc58fe39eaffc53273cd68da3c4d94c4e..a39a62aa688dbbc6220edaf3957c2759355a6fce 100644 (file)
     ("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)