Skip to content

[Ordered Comments] Add a proposal#3548

Merged
nex3 merged 4 commits intomainfrom
ordered-comments
Apr 27, 2023
Merged

[Ordered Comments] Add a proposal#3548
nex3 merged 4 commits intomainfrom
ordered-comments

Conversation

@nex3
Copy link
Contributor

@nex3 nex3 commented Apr 17, 2023

See #2848

@nex3 nex3 requested a review from jathak April 17, 2023 23:08

* Let `initial-imports` be the longest initial subsequence of top-level
statements in `domestic`'s CSS tree that contains only comments and
`@import` rules *and* that ends with an `@import` rule.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we take the long initial subsequence of comments and @import rules in css in the next step when looking for the insertion point, should we enforce ending with an @import here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should put this below comments, because otherwise if the entrypoint file contains no @imports they'll end up going before everything in that file, including potentially a license comment, which wouldn't be ideal.

Co-authored-by: Jennifer Thakar <jathak@google.com>
@nex3 nex3 merged commit 8dd2d5e into main Apr 27, 2023
@nex3 nex3 deleted the ordered-comments branch April 27, 2023 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants