-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/upgrade css tree 3.0.0 with formal CSS nesting handling #1281
Merged
thescientist13
merged 4 commits into
release/0.30.0
from
enhancement/upgrade-css-tree-3.0.0
Sep 20, 2024
Merged
feature/upgrade css tree 3.0.0 with formal CSS nesting handling #1281
thescientist13
merged 4 commits into
release/0.30.0
from
enhancement/upgrade-css-tree-3.0.0
Sep 20, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thescientist13
added
enhancement
Improve something existing (e.g. no docs, new APIs, etc)
CLI
dependencies
Pull requests that update a dependency file
labels
Sep 13, 2024
As far as nesting goes, it seems with both <html>
<head>
<style>
h2 {
& span {
color: red;
}
}
h3 {
span {
color: blue;
}
}
</style>
</head>
<body>
<h2>This is the second heading that <span>should be red</span>.</h2>
<h3>This is the second heading that <span>should be blue</span>.</h3>
</body>
</html> We get parse errors for the non Parse error: Colon is expected
6 |
7 |h3 {
8 | span {
--------------^
9 | color: blue;
10 | }
And comes out the other side "somewhat" correct, albeit missing the h2{ span{color:red}}h3{span {
color: blue;
}} Not sure how to get the For the non |
thescientist13
changed the title
enhancement/upgrade css tree 3.0.0
enhancement/upgrade css tree 3.0.0 and CSS nesting
Sep 14, 2024
thescientist13
changed the title
enhancement/upgrade css tree 3.0.0 and CSS nesting
enhancement/upgrade css tree 3.0.0 with formal CSS nesting handling
Sep 14, 2024
thescientist13
added
feature
New feature or request
and removed
enhancement
Improve something existing (e.g. no docs, new APIs, etc)
alpha.7
v0.30.0
labels
Sep 20, 2024
thescientist13
changed the title
enhancement/upgrade css tree 3.0.0 with formal CSS nesting handling
feature/upgrade css tree 3.0.0 with formal CSS nesting handling
Sep 20, 2024
thescientist13
force-pushed
the
enhancement/upgrade-css-tree-3.0.0
branch
from
September 20, 2024 22:32
606f82f
to
5a87944
Compare
3 tasks
thescientist13
added a commit
that referenced
this pull request
Nov 2, 2024
* upgrade to css-tree 3.0.0 * update comment * nesting selector CSS optimization support * cleanup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
resolves #1283
Summary of Changes
&
(NestedSelector
)TODO
MediaQuery
node +modifier
&
- feature/upgrade css tree 3.0.0 with formal CSS nesting handling #1281 (comment)Interestingly, it looks like
NestedSelector
is supported in v2 as wellSo if we can't land this upgrade in time for v0.37.0, we should at least cherry-pick over the nesting support