Commit Graph

437 Commits

Author SHA1 Message Date
Natalie Weizenbaum
a7fcfab812 Support complex selectors composed of only a single combinator
Although this is questionable style, this can be used for nesting and
there's not a strong reason to disallow it.
2022-07-13 15:34:16 -07:00
Natalie Weizenbaum
566bf54c3d Throw an error for an @extend rule with a bogus extender or target 2022-07-13 15:34:15 -07:00
Natalie Weizenbaum
7141b19f46 Don't throw an error for bogus style rules with no children 2022-07-12 13:59:41 -07:00
Natalie Weizenbaum
5e3314e52b Only omit style rules if _all_ of their complex selectors are bogus 2022-07-06 18:23:11 -07:00
Natalie Weizenbaum
10ccb919a7 Allow bogus selectors in selector.append() 2022-07-06 17:36:34 -07:00
Natalie Weizenbaum
fa6a3e352e Support single leading combinators in Phase 1 2022-07-06 16:50:37 -07:00
Natalie Weizenbaum
732c72289e Clarify the definition of bogus selectors in Phase 2 2022-07-06 16:45:38 -07:00
Natalie Weizenbaum
72b0e4f27a Mark the bogus combinators proposal as accepted 2022-07-06 15:43:07 -07:00
なつき
c1850ac85d
Add charset option to js-api (#3346) 2022-06-29 16:25:21 -07:00
Natalie Weizenbaum
8a2bbf4823
[Bogus Combinators] Support leading combinators in :has() (#3345) 2022-06-24 14:04:23 -07:00
Natalie Weizenbaum
0a5bbfe341
[Media Logic] Add a proposal (#3344) 2022-06-23 16:23:32 -07:00
Natalie Weizenbaum
164483a56d
[Bogus Combinators] Create a proposal (#3342)
See #3340
2022-06-21 17:44:31 -07:00
Natalie Weizenbaum
3673b2af51
Support var() with an empty fallback (#3338)
See #3245
2022-06-21 15:07:43 -07:00
Natalie Weizenbaum
8d99b48fa5
[Strict Unary] Fix a typo (#3341) 2022-06-21 15:05:56 -07:00
Natalie Weizenbaum
747d8d976b
Explicitly define FunctionExpression (#3336)
This sets the stage for modifying it to fix #3245
2022-06-16 15:21:15 -07:00
Natalie Weizenbaum
2a0c99ba97
[Strict Unary] Add a proposal (#3334) 2022-06-15 15:07:56 -07:00
Christophe Coevoet
ac8fedffdc
Update specs to allow CSS imports with arbitrary modifiers (#3290)
Closes #3285

Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2022-05-19 16:53:34 -07:00
Jennifer Thakar
4634461cd8
Update hsl/hwb specs to reflex current CSS logic (#3311)
Fixes #3298.
2022-05-11 14:20:19 -07:00
Natalie Weizenbaum
8cbe77da7c
Fix a bug in the custom function example (#3305)
Closes #3304
2022-05-02 14:42:09 -07:00
Christophe Coevoet
012f79f373
Add the syntax definition for the import rule (#3294) 2022-04-26 12:34:58 -07:00
Christophe Coevoet
066d10831d
Fix the algorithm computing the default use namespace (#3289)
Co-authored-by: Jennifer Thakar <jathak@google.com>
2022-04-25 13:58:47 -07:00
Natalie Weizenbaum
8b5c8cf42e
Mark the deep-merge-order spec as accepted (#3293) 2022-04-22 17:27:23 -07:00
Natalie Weizenbaum
c1cb057549
Add an MIT license (#3286)
All existing contributors have authorized releasing their
contributions under this license.

Closes #3254
2022-04-18 17:47:45 -07:00
Natalie Weizenbaum
de325aae5f
Exempt Twitter links from the link check test (#3292)
These have recently begun failing and blocking our CI.
2022-04-18 16:26:55 -07:00
なつき
12cee2dab9
Fix incorrect documentation for url in StringOptionsWithoutImporter (#3278) 2022-04-11 17:09:26 -07:00
Jennifer Thakar
b1cd040fed
Add support for :where (#3283)
Fixes #3130.

In addition to updating the procedure for extending a simple selector to
treat `:where` the same as `:is` and `:matches`, this also modifies the
second law of extend to account for specificity being modified by
pseudoselectors like `:where`.

This is a fast-track proposal.
2022-04-06 19:19:51 -07:00
Jennifer Thakar
e528c816d2
Don't simplify calcs in supports declarations (#3272)
This is a fast-track proposal.

Closes #3259.
2022-03-30 15:14:44 -07:00
Myles Lewando
ac8d416fe2
📝 Require correct url module in FileImporter doc (#3268) 2022-03-24 15:48:30 -07:00
Natalie Weizenbaum
cabccb7dbe
[Deep Merge Order] Create a proposal (#3271) 2022-03-18 13:10:32 -07:00
Christophe Coevoet
f355f602fc
Add the sourceMapIncludeSources option in the new JS API (#3226) 2022-01-14 16:38:28 -08:00
Christophe Coevoet
4f42632347
Fix the toc tool to insert the toc (#3225) 2022-01-14 15:01:51 -08:00
Natalie Weizenbaum
809bc03b48
Fix some incorrect documentation/typings in LegacyPluginThis.options (#3246)
The new documentation/typings reflect the actual behavior of both Node
Sass and Dart Sass.
2022-01-13 18:03:46 -08:00
Natalie Weizenbaum
ade3787da2
Add a type annotation for the top-level NULL field (#3243) 2022-01-11 17:28:10 -08:00
Natalie Weizenbaum
72974e1ec9
Add type annotations for the top-level TRUE and FALSE fields (#3241) 2022-01-07 14:34:44 -08:00
Natalie Weizenbaum
a9aa972e44
Add type annotations for the sass.types.Error class (#3238) 2022-01-05 16:39:32 -08:00
Natalie Weizenbaum
4b48b0e990
Add a type declaration for LegacyPluginThis.options.context (#3236) 2022-01-05 16:08:51 -08:00
Natalie Weizenbaum
b51895ec1d
Make LegacyAsyncFunction type more usable (#3237)
TypeScript requires that a callback type with a rest parameter be
passed a callback with a rest parameter. This makes it awkward to pass
in functions with a known number of parameters, as in
`foo($arg): (value, done) => { /* ... */ }`. This type declaration
makes that easier (although callers still need to explicitly declare a
type for the `done` parameter).
2022-01-05 16:08:41 -08:00
Natalie Weizenbaum
a93aec7092
Allow SassFunction signatures to be checked on return (#3220)
This allows implementations to avoid needing to have an
easily-accessible Sass parser in JS.
2021-12-21 13:21:19 -08:00
Natalie Weizenbaum
99168e0cbf
Make LegacyFileOptions.data optional (#3215)
If this is mandatory, the compiler will complain if it's not passed,
but it's typed as `never` so it's impossible to pass a valid value.
2021-12-10 21:11:38 +00:00
Natalie Weizenbaum
23278f2c92
Use the URL type from the DOM definitions, not from Node (#3214)
The two aren't quite interchangeable: the Node definition has a few
more fields, which means that URLs created naively with `new URL()`
aren't assignable to that type.
2021-12-10 21:11:27 +00:00
Natalie Weizenbaum
b192519b55
Document the new JS API (#3183) 2021-11-30 23:32:04 +00:00
Natalie Weizenbaum
ebbc52877a
Make the new JS API a bit more idiomatic (#3200)
This takes more advantage of overloads and unions rather than
using factory constructors or methods with different names.
2021-11-30 00:10:42 +00:00
Awjin Ahn
4939fb6cff
Update immutable-js dep. (#3195) 2021-10-27 16:30:22 -07:00
Natalie Weizenbaum
875d7c05bb
Add a code example for Logger.silent (#3192)
See sass/dart-sass#1533
2021-10-26 21:06:38 +00:00
Natalie Weizenbaum
a48cd426b2
Update dependencies (#3193) 2021-10-26 20:28:33 +00:00
Natalie Weizenbaum
7d3f10de38
Merge pull request #3186 from sass/heads-up
Get rid of explicit heads-up and compatibility HTML
2021-10-11 21:58:47 +00:00
Natalie Weizenbaum
ea3d97b8d6
Replace FileImporterResult with a plain URL (#3180)
Supplying a source map URL doesn't make sense for a file importer, for
two reasons:

1. A canonical `file:` URL is already the recommended source map URL
   because it's always available on the local system.

2. Because a FileImporter doesn't know the fully-resolved canonical
   URL of the file it loads, it doesn't have any way of determining
   what the full source map URL should be anyway.
2021-10-09 01:19:02 +00:00
Natalie Weizenbaum
1047c1a870 Convert explicit compatiblity HTML into a nicer @-tag 2021-10-08 18:12:15 -07:00
Natalie Weizenbaum
77a592d4dc Convert explicit "Heads up" HTML into nicer-looking Markdown
On the Sass site side, we'll detect this markdown and convert it into
our special HTML, but this way it's easier to read and write and more
IDE-friendly.
2021-10-08 16:51:10 -07:00
Natalie Weizenbaum
3b6deaf731
Automatically handle absolute file: URLs for FileImporters (#3181)
Absolute file: URLs are always unambiguous when referring to the
native filesystem, so there's no need for the custom callback to
handle them. What's more, allowing the callback to only ever have to
think about relative URLs will make it much simpler for users to
implement.
2021-10-07 00:15:35 +00:00