* lisp/textmodes/css-mode.el (css--complete-property-value): Make
"initial" and "unset" completion candidates for all CSS properties,
just like "inherit".
* test/lisp/textmodes/css-mode-tests.el
(css-test-complete-property-value): Update test to reflect the above
change.
(save-excursion
(skip-chars-backward "[:graph:]")
(list (point) end
- (cons "inherit" (css--property-values property))))))))
+ (append '("inherit" "initial" "unset")
+ (css--property-values property))))))))
(defvar css--html-tags (mapcar #'car html-tag-alist)
"List of HTML tags.
(let ((completions (css-mode-tests--completions)))
(should
(equal (seq-sort #'string-lessp completions)
- '("absolute" "fixed" "inherit" "relative" "static"))))))
+ '("absolute" "fixed" "inherit" "initial" "relative"
+ "static" "unset"))))))
(ert-deftest css-test-complete-pseudo-class ()
(with-temp-buffer