Sarath Francis and GitHub
cdc8897519
Fix childless at-rule losing its semicolon before a comment ( #2115 )
...
A childless (statement) at-rule that is the last non-comment child but is
followed by comment siblings was stringified without its terminating
semicolon. On re-parse the trailing comments were folded into the
at-rule prelude and dropped, so building such a tree with append() or
insertBefore() silently lost the comment nodes.
Emit the semicolon when a childless at-rule still has following siblings
so the output round-trips.
2026-07-21 10:53:42 +02:00
Sarath Francis and GitHub
680ebe0244
Fix missing space when AtRule#params is set after parsing ( #2113 )
2026-07-19 10:23:15 +02:00
Mahin Anowar and GitHub
8faa4f8eee
Keep explicitly set raws.before when inserting nodes into root ( #2111 )
2026-07-13 12:37:33 +02:00
Andrey Sitnik
69d5b399fd
Fix Maximum call stack size exceeded error
2026-07-11 19:06:38 +00:00
Andrey Sitnik
fb2bc3f358
Update formatting
2026-06-28 14:54:32 +00:00
James Garbutt
e712faf51f
fix: always call raw to retrieve raw values
...
Without this, it becomes impossible to override the stringifier with
your own raw computation, etc.
2026-05-04 12:37:08 +01:00
Andrey Sitnik and GitHub
675d4292f7
Escape </style> in CSS output ( #2074 )
2026-04-15 16:38:35 +02:00
Andrey Sitnik
89b7f7ac78
Update dependencies and code style
2023-07-06 13:38:48 +02:00
Andrey Kim
cd9ec4f200
Move from Jest to uvu
2021-11-15 11:25:34 +03:00
Andrey Sitnik
6176e9ec7a
Update dependencies
2021-10-20 17:11:51 +02:00
Aleks Hudochenkov
c2f1a11a2e
Remove Root.raws.before
2021-05-18 21:40:56 +02:00
Aleks Hudochenkov
430ee0d902
Add Document node and related API ( #1498 )
2021-05-16 20:15:56 +02:00
James Garbutt
37765f9c4b
remove root assignment
2020-12-29 13:44:55 +00:00
Andrey Sitnik
389b7b00a9
Export public classes from main entry
2020-07-12 16:31:09 -07:00
Andrey Sitnik
fa6b5f9981
Add PrettierX
2020-07-06 17:24:57 -07:00
Andrey Sitnik
9dd4b60fc9
Clean up tests
2020-06-21 19:13:53 -04:00
Andrey Sitnik
d94ddb4536
Update code style
2018-07-30 14:09:27 -04:00
Andrey Sitnik
e7e04e40c6
Update code style
2018-07-16 08:36:10 -07:00
Andrey Sitnik
43dd8af2a0
Fix Node.js 4 support
2017-12-22 22:46:48 +03:00
Andrey Sitnik
c82cc80a8f
Do no compile tests by Babel
2017-12-19 01:55:37 +03:00
Andrey Sitnik
b1fbe34a8e
Do not copy * hack to indent
2017-09-25 10:15:40 +03:00
Andrey Sitnik
e2134ebe8e
Move test to Jest
2017-05-01 12:17:55 +02:00