Skip to content

Commit 7ff93ca

Browse files
committed
Remove nesting option from playground, update docs
On by default!
1 parent 8683184 commit 7ff93ca

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ An extremely fast CSS parser, transformer, and minifier written in Rust. Use it
2525
- **Vendor prefixing** – Lightning CSS accepts a list of browser targets, and automatically adds (and removes) vendor prefixes.
2626
- **Browserslist configuration** – Lightning CSS supports opt-in browserslist configuration discovery to resolve browser targets and integrate with your existing tools and config setup.
2727
- **Syntax lowering** – Lightning CSS parses modern CSS syntax, and generates more compatible output where needed, based on browser targets.
28-
- CSS Nesting (draft spec)
28+
- CSS Nesting
2929
- Custom media queries (draft spec)
3030
- Logical properties
3131
* [Color Level 5](https://drafts.csswg.org/css-color-5/)

website/pages/transpilation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ p:not(:first-child, .lead) {
436436
compiles to:
437437

438438
```css
439-
p:not(:is(:first-child, (.lead)) {
439+
p:not(:is(:first-child, .lead)) {
440440
margin-top: 1em;
441441
}
442442
```

website/playground/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ <h3>Options</h3>
170170
<label><input id="analyzeDependencies" type="checkbox"> Analyze dependencies</label>
171171
<label><input id="visitorEnabled" type="checkbox"> Visitor</label>
172172
<h3>Draft syntax</h3>
173-
<label><input id="nesting" type="checkbox" checked> Nesting</label>
174173
<label><input id="customMedia" type="checkbox" checked> Custom media queries</label>
175174
<h3>Targets</h3>
176175
<div class="targets">

website/playground/playground.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ function loadPlaygroundState() {
4646
} catch {
4747
return {
4848
minify: minify.checked,
49-
nesting: nesting.checked,
5049
visitorEnabled: visitorEnabled.checked,
5150
targets: getTargets(),
5251
include: 0,
@@ -102,10 +101,6 @@ function reflectPlaygroundState(playgroundState) {
102101
compiledDependencies.hidden = !playgroundState.analyzeDependencies;
103102
}
104103

105-
if (typeof playgroundState.nesting !== 'undefined') {
106-
nesting.checked = playgroundState.nesting;
107-
}
108-
109104
if (typeof playgroundState.customMedia !== 'undefined') {
110105
customMedia.checked = playgroundState.customMedia;
111106
}
@@ -144,7 +139,6 @@ function savePlaygroundState() {
144139
let data = new FormData(sidebar);
145140
const playgroundState = {
146141
minify: minify.checked,
147-
nesting: nesting.checked,
148142
customMedia: customMedia.checked,
149143
cssModules: cssModules.checked,
150144
analyzeDependencies: analyzeDependencies.checked,
@@ -216,7 +210,6 @@ function update() {
216210
include,
217211
exclude,
218212
drafts: {
219-
nesting: nesting.checked,
220213
customMedia: customMedia.checked
221214
},
222215
cssModules: cssModules.checked,

0 commit comments

Comments
 (0)