Files
postcss/test
Sarath FrancisandGitHub 2b6d01d957 Fix custom property losing its semicolon before a comment (#2117)
A custom property declaration that is the last non-comment child but is
followed by comment siblings was stringified without its terminating
semicolon. Unlike a normal declaration, a custom property keeps everything
up to the next `;` or `}` as its value, so on re-parse the trailing
comments were folded into the value and the comment nodes disappeared.

Building such a tree with append()/insertAfter()/after() therefore
silently dropped the comments. Emit the semicolon when a custom property
still has following siblings so the output round-trips, mirroring the
existing handling for childless at-rules.
2026-07-22 09:41:08 +02:00
..
2026-05-11 17:27:55 +00:00
2026-04-07 16:07:54 +00:00
2021-11-15 11:25:34 +03:00
2026-06-28 14:50:44 +00:00
2025-02-19 13:43:47 +00:00
2023-04-15 13:04:52 +02:00
2026-07-11 17:47:41 +00:00
2021-11-15 11:25:34 +03:00
2025-05-29 13:54:36 +09:00
2025-05-29 13:54:36 +09:00
2025-02-19 13:43:47 +00:00