Commit Graph

206 Commits

Author SHA1 Message Date
Natalie Weizenbaum
d43038ae59 Merge branch 'main' of github.com:sass/sass into merge 2024-08-12 12:16:09 -07:00
Natalie Weizenbaum
4515cf6add
[Color 4] Do a full re-read and revision (#3869)
Co-authored-by: Jennifer Thakar <jathak@google.com>
2024-07-18 01:21:46 +00:00
Natalie Weizenbaum
674e6447aa [Interleaved Decls] Remove @nest
See w3c/csswg-drafts#10234
2024-07-03 17:28:18 -07:00
Natalie Weizenbaum
4411ebae22 Update based on implementation experience 2024-06-18 23:17:13 -07:00
Natalie Weizenbaum
79799ca575 [Interleaved Declarations] Mark as accepted
See #3846
2024-06-18 17:08:12 -07:00
Natalie Weizenbaum
ea2ee6e46d Fix broken links 2024-06-18 16:59:20 -07:00
Natalie Weizenbaum
b79c8ee2ba Require shortcut links 2024-06-17 17:49:23 -07:00
Natalie Weizenbaum
f91c4cda2d Enable markdownlint checks for shortcut links 2024-06-17 17:19:23 -07:00
Natalie Weizenbaum
67e23c6019 Update markdownlint 2024-06-17 16:58:34 -07:00
Natalie Weizenbaum
290c02f1f3 Merge remote-tracking branch 'origin/main' into merge-main 2024-05-29 18:21:23 -07:00
Natalie Weizenbaum
e778899743
[Color 4] Be stricter about slash-separated strings (#3862)
Co-authored-by: Carlos (Goodwine) <2022649+Goodwine@users.noreply.github.com>
2024-05-10 21:27:08 +00:00
Natalie Weizenbaum
84f5188d94 [Color 4] Use local-minde gamut mapping for ie-hex-string() 2024-05-08 17:30:16 -07:00
Natalie Weizenbaum
ed13d3389d [Color 4] CSS compatibility for invert() and grayscale() 2024-05-08 17:18:59 -07:00
Natalie Weizenbaum
65a0adec50 [Color 4] Make invert() throw an error for invalid weight 2024-05-08 16:36:48 -07:00
Natalie Weizenbaum
62478f8738 [Color 4] Make convert() and grayscale() preserve space 2024-05-08 14:42:08 -07:00
Natalie Weizenbaum
6395fd848f [Color 4] Remove contradictory langugae for scaling a number 2024-05-07 17:13:15 -07:00
Natalie Weizenbaum
c8fe2ed86f [Color 4] Improve specifications for missing alpha values 2024-05-03 16:28:35 -07:00
Natalie Weizenbaum
ca967a42a6 [Color 4] Treat missing channels as distinct from 0 for ==
Now that `color.same()` explicitly treats missing channels as 0, it
makes more sense for `==` to fill the stricter role and treat them as
different. This is especially true because it already
requires (non-legacy) colors to be in the same space, so missing
channels are much more consistently meaningful than they would be in
cross-space comparisons.
2024-05-02 15:59:33 -07:00
Natalie Weizenbaum
2cde27c85a [Color 4] Zero missing channels before conversion in color.same()
Otherwise, you get weird behavior when conversion to the XYZ space
preserves missing channels, which can cause colors to be considered
`same()` even when they're visually distinct.
2024-05-02 15:29:27 -07:00
Natalie Weizenbaum
d6597814bc
[Color 4] Clean up the definition of color.same() (#3852)
This was still written with the expectation that unknown color spaces
existed. It also makes missing channels equivalent to 0s even if they
survive the conversion to `xyz`.
2024-05-02 20:30:06 +00:00
Natalie Weizenbaum
d3ed8dfc72
[CSS Function/Mixin Prep] Mark as accepted and update spec (#3854) 2024-04-30 21:19:57 +00:00
Natalie Weizenbaum
baffce1708
[Color 4] Require case-sensitivity for all channel names (#3851)
This was already implicit in most cases, because all string
comparisons are case-sensitive by default, but a few alpha comparisons
were explicitly case-insensitive. This makes it more consistent as
well as more explicit, and adds a design decision section discussing
the reasoning.
2024-04-25 20:14:50 +00:00
Natalie Weizenbaum
465f0db7d1
[Color 4] Require an explicit gamut mapping method (#3836) 2024-04-19 23:18:25 +00:00
Natalie Weizenbaum
c46bd38bb2 Merge remote-tracking branch 'origin/main' into merge-main 2024-04-11 16:08:00 -07:00
Natalie Weizenbaum
c0c25d5c28
[Color 4] Mark the proposals as accepted (#3833)
Although these are still in flux (largely due to CSS changing under
our feet to some degree), it's been almost two years since we put them
out for review initially so I think it's fair to say that the core
principles are solid.

See #2831
2024-04-11 22:14:15 +00:00
Christophe Coevoet
7641a7eccd
Mark the "Remove feature-exists" proposal as accepted (#3828) 2024-04-08 22:34:52 +00:00
Jennifer Thakar
ede7f25c8e
Integrate the deprecations API into the spec/docs/protocol (#3826) 2024-04-03 14:14:44 -07:00
Natalie Weizenbaum
9343edb3df [Plain CSS Nesting] Mark as accepted (#3813)
This also updates the draft so that

```scss
a {
  @include meta.load-css("plain.css");
}
```

only generates plain CSS nesting if `plain.css` contained nesting.
2024-03-27 11:43:24 -07:00
Natalie Weizenbaum
bb187794a0 Flush the slash separator proposal to the main spec (#3798)
See #2565
2024-03-27 11:43:24 -07:00
James Stuckey Weber
34327d35ee Add subpath to list of export load paths (#3793) 2024-03-27 11:43:24 -07:00
James Stuckey Weber
336bfd69b2 [Package Importer] Add types and specs (#3728)
Co-authored-by: Jonny Gerig Meyer <jonny@oddbird.net>
2024-03-27 11:43:24 -07:00
James Stuckey Weber
de2dc317c0 [Shared Resources] Add types and specs (#3744)
Co-authored-by: Jonny Gerig Meyer <jonny@oddbird.net>
2024-03-27 11:43:24 -07:00
Natalie Weizenbaum
353942622f Move and restructure how we specify scopes 2024-03-27 11:43:06 -07:00
Christophe Coevoet
5a339469b9 Fix typos in the deprecation APi proposal (#3708) 2024-03-27 11:43:06 -07:00
Natalie Weizenbaum
68944df35e
[Calc Functions] Apply to main specification (#3693)
See #3504
2023-09-20 23:31:36 +00:00
Natalie Weizenbaum
058ce05454
[Containing URL] Update the specification (#3688)
See #3247
2023-09-18 23:00:25 +00:00
James Stuckey Weber
e1442fcc68
Change markdownlint script executable, fix removed link (#3669) 2023-09-14 16:07:01 -07:00
Natalie Weizenbaum
ad0bc6bd50
[Calc Functions] Fully support space-separated lists (#3682) 2023-09-13 21:02:47 +00:00
Natalie Weizenbaum
76696f86b8
[First-Class Mixins] Mark as accepted (#3680)
See #626
2023-09-07 18:44:14 -07:00
Natalie Weizenbaum
584e4c2a98
[Calc Functions] Update based on implementation feedback (#3675)
See #3504
2023-09-02 00:35:44 +00:00
Natalie Weizenbaum
a7aae4daca
[Calc Functions] Substantially refactor calculation parsing (#3661)
This allows calculation syntax to coexist with user-defined Sass
functions instead of needing every new calculation function to break
all existing Sass functions of the same name.

See #3504
2023-08-28 12:50:59 -07:00
Natalie Weizenbaum
1523bffb36
Add a Markdown linter (#3667) 2023-08-22 21:10:27 +00:00
Natalie Weizenbaum
4eab117124
[Calc Functions] Allow custom functions with vendor-prefixed names (#3658)
See #3504
2023-08-17 22:40:16 +00:00
Natalie Weizenbaum
877fa7f705
[Calc Functions] Handle name conflicts with Sass functions (#3657)
See #3504
2023-08-17 22:05:51 +00:00
Natalie Weizenbaum
a139b4d134
[Calc Functions] Fix the definition of rem() (#3641) 2023-07-28 13:38:53 -07:00
Natalie Weizenbaum
9a565fb59a
[Calculation API] Fix some issues brought up during implementation (#3631) 2023-07-11 16:34:43 -07:00
Natalie Weizenbaum
39593537be
[Calc Functions] Match the spec's behavior better for percentages (#3630)
More functions disallow percentages in CSS than our spec did, so this
updates the spec to match.
2023-07-07 14:29:30 -07:00
Natalie Weizenbaum
f61b9165c3
[Containing URL] Mark as accepted (#3620)
See #3247
2023-06-21 20:31:20 +00:00
Ed Rivas
39915044f6
Add JS type defs for calculations (#3605)
Co-authored-by: Jonny Gerig Meyer <jonny@oddbird.net>
2023-06-20 15:55:26 -07:00
Jennifer Thakar
0cc3d56656
[Calc Functions] Ensure slash division works on min/max/abs/round (#3610) 2023-06-20 14:50:57 -07:00