aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/css.vim
Commit message (Collapse)AuthorAge
* vim-patch:43725ac: runtime(css): Add additional CSS pseudo-classes and ↵zeertzjq2026-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functions (#42192) Problem: Other than `state()` these are widely supported CSS features Solution: Add :host, :host-context(), slotted(), and state() CSS pseudo-classes and functions (S0AndS0). Reference: - https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/:host - https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/:host_function - https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::slotted - https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/:state TLDR: `host` and `host-context()` are useful for shadowDom stuff, `::slotted()` enables targeting elements passed/injected into a `<template>` and `state()` enables targeting custom identifiers. For example, currently I'm (ab)using `:host` as a drop-in replacement for `:root` when defining variables that are intended to be shared across custom/template elements; - `./assets/css/host.css` ```css :host { --default__margin-block: 0.25rem; } ``` - `./custom-elements/example.html` ```html <template> <link rel="stylesheet" href="/assets/css/host.css"> <style> header { margin-block-start: calc(var(--default__margin-block) * 2); } </style> <header></header> </template> ``` closes: vim/vim#21404 https://github.com/vim/vim/commit/43725acce680d1b999e22fad68cea99c2b593325 Co-authored-by: S0AndS0 <strangerthanbland@gmail.com>
* vim-patch:06512b1: runtime(css): add more missing CSS propertieszeertzjq2026-06-29
| | | | | | | | | | | | | | | | | This is defined in the 'CSS Overflow Module Level 3' spec[1] and supported by recent versions of all browsers reported by MDN[2], see the MDN page also for the available values. Link: https://drafts.csswg.org/css-overflow/#scrollbar-gutter-property [1] Link: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/scrollbar-gutter#browser_compatibility [2] related: vim/vim#20639 closes: vim/vim#20653 https://github.com/vim/vim/commit/06512b153cd8b432bb24087143299f082a353885 Co-authored-by: Jay Sitter <jay@jaysitter.com> Co-Authored-by: Matthew Hughes <matthewhughes934@gmail.com>
* vim-patch:1cf38bf: runtime(css): Add missing numeric units (#37843)zeertzjq2026-02-13
| | | | | | | | | | | | | | - Add missing numeric units to css syntax script (baseline 2015, 2020, 2022, 2023, 2026): dvb, dvh, dvi, dvmax, dvmin, dvw ic, lvb, lvh, lvi, lvmax, lvmin, lvw, svb, svh, svi, svmax, svmin, svw, vb, vi, x, cap, lh, rlh, rcap, rch, rex, ric closes: vim/vim#19325 https://github.com/vim/vim/commit/1cf38bfebeeb322a8437a7c1fd12506661bbfa82 Co-authored-by: DuckAfire <155199080+duckafire@users.noreply.github.com>
* vim-patch:62d8f3d: runtime: Revert several "mark invalid contact addresses" ↵zeertzjq2026-01-02
| | | | | | | | | | | | | | | | | | | commits (#37192) This reverts commits: - 6b652a785033fd4164e049492a7327c1ed7c3e5f - 2f689d5abde0ccddca9e20d8c93a0299bd054e32 - a025a46d4169587145fb54f04af349cd05cb6122 Several email addresses that are known to be valid caused bounces due to an issue with my email setup. The previous commits incorrectly marked these addresses as invalid. So revert the whole thing again. https://github.com/vim/vim/commit/62d8f3dab5a0b30c31a8df86a973c5e59821a3f0 N/A patch: vim-patch:2f689d5: runtime: mark more invalid email addresses Co-authored-by: Christian Brabandt <cb@256bit.org>
* vim-patch:partial:2f689d5: runtime: mark more invalid email addresseszeertzjq2026-01-01
| | | | | | | | https://github.com/vim/vim/commit/2f689d5abde0ccddca9e20d8c93a0299bd054e32 Skip colors/ and syntax/help_ru.vim: missing previous changes. Co-authored-by: Christian Brabandt <cb@256bit.org>
* vim-patch:f85951f: runtime(css): improve cssBoxProp matches (#36528)zeertzjq2025-11-12
| | | | | | | closes: vim/vim#18717 https://github.com/vim/vim/commit/f85951fee0e3ccd48ccfaeec9c09f96e325925d1 Co-authored-by: Neil Lambert <nlambert@pm.me>
* vim-patch:e84490311ba3Christian Clason2024-03-04
| | | | | | | | runtime(css): update syntax script https://github.com/vim/vim/commit/e84490311ba32cb258cc738bc3caa8b448c84c8b Co-authored-by: Jay Sitter <jay@jaysitter.com>
* vim-patch:309ded19543cChristian Clason2023-08-21
| | | | | | | | runtime(css): Update pseudo-classes in syntax script (vim/vim#11595) https://github.com/vim/vim/commit/309ded19543c140375b28ef562257e9f22c918c6 Co-authored-by: Adrian Heine né Lang <mail@adrianheine.de>
* vim-patch:0e6adf8a29d5 (#16682)Christian Clason2021-12-16
| | | | Update runtime files https://github.com/vim/vim/commit/0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471
* vim-patch:2286304cdbbaChristian Clason2021-10-16
| | | | | Update runtime files https://github.com/vim/vim/commit/2286304cdbba53ceb52b3ba2ba4a521b0a2f8d0f
* vim-patch:4f4d51a942ccJan Edmund Lazo2021-05-01
| | | | | | | | Update runtime files. https://github.com/vim/vim/commit/4f4d51a942cc2c6b3e936ee0f93f00c2d000065c Omit "??" operator. Patches v8.2.1794,v8.2.1798 are not ported yet.
* vim-patch:e7b1ea0276ccJan Edmund Lazo2021-04-29
| | | | | Update runtime files. https://github.com/vim/vim/commit/e7b1ea0276cc83cd5c612f3189a174a60d57b5ed
* vim-patch:06fe74aef726Justin M. Keyes2019-09-06
| | | | | Runtime files update. https://github.com/vim/vim/commit/06fe74aef72606ac34c9f494186e52614b8fb59a
* vim-patch:22f1d0e35eb0Justin M. Keyes2018-10-28
| | | | | | | Updated runtime files. Add Serbian translations and spell checking. https://github.com/vim/vim/commit/22f1d0e35eb0e503c2dc7813a973c7e6ca1b7dde
* vim-patch:369b6f57c426Justin M. Keyes2017-05-01
| | | | | | Update runtime files. https://github.com/vim/vim/commit/369b6f57c426b4bf39b4a0cac8d21ed1b5f7de4d
* vim-patch:f37506f60f87Justin M. Keyes2017-04-28
| | | | | | Updated runtime files. Remove HiLink commands. https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
* vim-patch:89bcfda6834aJustin M. Keyes2017-04-28
| | | | | | Updated runtime files. Remove version checks for Vim older than 6.0. https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
* Update runtime/syntax/css.vimMarco Hinz2015-11-08
| | | | This file was missing from the previous runtime update (975a610).
* re-integrate runtime/ vim-patch:0 #938Justin M. Keyes2014-07-29
Vim runtime files based on 7.4.384 / hg changeset 7090d7f160f7 Excluding: Amiga icons (*.info, icons/) doc/hangulin.txt tutor/ spell/ lang/ (only used for menu translations) macros/maze/, macros/hanoi/, macros/life/, macros/urm/ These were used to test vi compatibility. termcap "Demonstration of a termcap file (for the Amiga and Archimedes)" Helped-by: Rich Wareham <rjw57@cam.ac.uk> Helped-by: John <john.schmidt.h@gmail.com> Helped-by: Yann <yann@yann-salaun.com> Helped-by: Christophe Badoit <c.badoit@lesiteimmo.com> Helped-by: drasill <github@tof2k.com> Helped-by: Tae Sandoval Murgan <taecilla@gmail.com> Helped-by: Lowe Thiderman <lowe.thiderman@gmail.com>