Version 0.3.1
Pre-release
Pre-release
Grouped selectors are now supported. For example:
h1,
p {
content: 'Hello';
margin: 0;
}Will become:
<h1>Hello</h1>
<p>Hello</p>Generation of elements from nth selectors (with fill enabled) has been improved and is now more inline with the CSS spec.
Input:
span:nth-child(5) {
color: red;
}
div.first:first-child {
content: 'a';
}
span.last:last-child {
content: 'b';
}
span:last-child {
content: 'c';
}Old output:
<div class="first">a</div>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span class="last">b</span>
<span>c</span>This breaks the styles applied by span.last:last-child.
New output:
<div class="first">a</div>
<span></span>
<span></span>
<span></span>
<span class="last">c</span>All styles are respected.
Our testing methodology is now greatly improved, using Playwright for test-driven development on Chromium, Firefox, and Webkit.