Commit Graph

879 Commits

Author SHA1 Message Date
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
31eefa59ca
[Color 4] Various fixes (#3858) 2024-05-09 13:17:20 -07: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
fd872ff2b9
Allow @-rules in @keyframes blocks (#3861)
This is a fast-track proposal.

Closes #3859
2024-05-06 21:48:26 +00: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
Christophe Coevoet
71df892b8c
Remove duplicate section in proposal (#3857) 2024-05-02 20:26:34 +00:00
dependabot[bot]
3ef0ad476b
Bump bufbuild/buf-setup-action from 1.30.1 to 1.31.0 (#3855)
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.30.1 to 1.31.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.30.1...v1.31.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-01 13:40:23 -07:00
Natalie Weizenbaum
28b17d89de
[Interleaved Declarations] Add a proposal (#3848)
See #3846
2024-04-30 21:35:23 +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
b888b3be25 Add a proposal to make room for plain-CSS functions and mixins
See #3787
2024-04-26 16:06:10 -07: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
3abb16b0f8
Merge pull request #3849 from sass/add-specs
Flesh out some specs in preparation for modifying them
2024-04-24 15:22:36 -07:00
Natalie Weizenbaum
c5e1f9a55c Fix an at-rule semantics bug 2024-04-23 18:11:40 -07:00
Natalie Weizenbaum
09c89ec6ca
[Ordered Comments] Flush to the spec (#3844)
See #2848
2024-04-24 01:02:12 +00:00
Natalie Weizenbaum
bcbc5a51f9 Add full semantics for unknown at-rules 2024-04-23 16:41:50 -07:00
Natalie Weizenbaum
5cceb6c1ff Specify the existing declaration behavior 2024-04-23 16:41:50 -07:00
Natalie Weizenbaum
d47003033f
Fix some bugs in the style rule and extend specs (#3847)
* Adds style rules to the stylesheet when they're encountered rather
  than after all their children have run, so that nested rules appear
  after their parents.

* Removes private placeholder selectors from style rules *after*
  they've been extended by local extensions.

* Explicitly handle omitting placeholder-only selectors from the CSS
  generated by Resolving Extensions.

* Allow the current selector to come from copies created by bubbling.

* Properly handle keyframe blocks.
2024-04-23 23:41:03 +00:00
dependabot[bot]
ca95c8bb6f
Bump tj-actions/changed-files from 44.0.1 to 44.3.0 (#3845)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 44.0.1 to 44.3.0.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](635f118699...0874344d6e)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 13:40:49 -07:00
Natalie Weizenbaum
465f0db7d1
[Color 4] Require an explicit gamut mapping method (#3836) 2024-04-19 23:18:25 +00:00
Natalie Weizenbaum
90948b384a
Flush plain CSS nesting changes to the spec (#3841)
Closes #3524

Co-authored-by: Carlos (Goodwine) <2022649+Goodwine@users.noreply.github.com>
2024-04-19 23:17:11 +00:00
なつき
92c48d295f
Implement access tracking for containingUrl (#3835) 2024-04-17 21:33:07 +00:00
dependabot[bot]
b7a34b2aa5
Bump bufbuild/buf-setup-action from 1.30.0 to 1.30.1 (#3829)
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.30.0 to 1.30.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.30.0...v1.30.1)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-16 16:11:39 -07:00
dependabot[bot]
1af73c8f9d
Bump tj-actions/changed-files from 44.0.0 to 44.0.1 (#3837)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 44.0.0 to 44.0.1.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](2d756ea4c5...635f118699)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-16 16:10:43 -07:00
Natalie Weizenbaum
f4cf151046
Merge pull request #3834 from sass/merge-main
Merge main into feature.color-4
2024-04-11 17:09:14 -07:00
Natalie Weizenbaum
170dbd4f8e Add new deprecations 2024-04-11 16:26:33 -07:00
Natalie Weizenbaum
c46bd38bb2 Merge remote-tracking branch 'origin/main' into merge-main 2024-04-11 16:08:00 -07:00
Natalie Weizenbaum
55514224ca
Clarify that base importer resolution does not require a URL (#3832)
See sass/dart-sass#2208

Co-authored-by: Carlos (Goodwine) <2022649+Goodwine@users.noreply.github.com>
2024-04-11 22:33:39 +00: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
Natalie Weizenbaum
77e2d76919
Merge pull request #3823 from sass/color-1.14
[Color 4] Update both proposals
2024-04-09 17:15:36 -07: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
dependabot[bot]
f2cb2d57fa
Bump tj-actions/changed-files from 43.0.1 to 44.0.0 (#3825)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 43.0.1 to 44.0.0.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](20576b4b9e...2d756ea4c5)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 14:03:24 -07:00
Natalie Weizenbaum
07546edf81 Link to color 4 changelog 2024-04-01 11:21:00 -07:00
Natalie Weizenbaum
4a8a9e77f5 [Color 4 JS] Don't throw errors for out-of-gamut lightness 2024-03-29 14:30:38 -07:00
Natalie Weizenbaum
b4351f58af [Color 4] Update the powerless definition for HWB 2024-03-29 14:30:38 -07:00
Natalie Weizenbaum
53a6a09a1e
Merge pull request #3824 from sass/merge-main
Merge main into feature.color-4
2024-03-29 14:29:54 -07:00
Natalie Weizenbaum
b319334f53 Merge branch 'main' of github.com:sass/sass into feature.color-4 2024-03-29 14:17:54 -07:00
Natalie Weizenbaum
9f2cd2f51d
Merge pull request #3819 from sass/color-powerless
[Color 4] Update draft with more clamping/powerless adjustments
2024-03-28 13:22:30 -07:00
Natalie Weizenbaum
b5e84b0c7c
Merge pull request #3821 from sass/merge-main
Merge main into feature.color-4
2024-03-27 14:45:15 -07:00
Natalie Weizenbaum
b1bb270ede [Color 4] Convert negative s/c polar colors to positive equivalents 2024-03-27 13:23:19 -07:00
Natalie Weizenbaum
075c796c7b [Color 4] Allow more flexibility for out-of-bounds clamped channels 2024-03-27 13:23:19 -07:00
Natalie Weizenbaum
89b3581cf4 [Color 4] Clarify color.change/adjust/scale error behavior 2024-03-27 13:23:19 -07:00
Natalie Weizenbaum
d6c0135d0e [Color 4] Add channel clamping to color.adjust() 2024-03-27 13:23:19 -07:00