Function: web-mode-css-indentation
web-mode-css-indentation is a natively compiled function defined in
web-mode.el.
Signature
(web-mode-css-indentation POS INITIAL-COLUMN LANGUAGE-OFFSET LANGUAGE &optional LIMIT)
Source Code
;; Defined in /nix/store/2qgnz1rp30nzfz6w0apx4kdm14if1bbs-emacs-packages-deps/share/emacs/site-lisp/elpa/web-mode-20260831.219/web-mode.el
(defun web-mode-css-indentation (pos initial-column language-offset language &optional limit)
(let ((open-ctx (web-mode-bracket-up pos language limit)) offset)
(cond
((or (null open-ctx) (null (plist-get open-ctx :pos)))
(setq offset initial-column))
(t
(setq offset (+ (plist-get open-ctx :indentation) language-offset)))
) ;cond
(cons (if (< offset initial-column) initial-column offset) open-ctx)
))