-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Extract position to its own folder * Move Offset to its own file * Move Keywords and Side to their own files * Move Component to its own file * Remove Offset and use LengthPercentage directly * Make Side somewhat calculatable * Switch parameter order * Prepare partial resolving * Make Component always take a Side * Add missing changeset * Make offest optional in Side.of * Make offset optional or Option in Side.of * Add partial resolver, rework type parameters * Make Position calculatable * Add some parsing examples with calculations * Add some resolving examples with calculations * Resolve percentages separatly in each dimension * Add changeset * Clean up * Extract API * Clean up * Typo * Extract API * Add Resolvable implementation * Extract API * Calculatable `Shadow` (#1455) * Typo * Add some package implementation details * Streamline code * Streamline parser * Clean up test indentation * Add some shadow teest * Eport Option interface * Add more shadow parsing tests * Add a resolve test * Make Shadow calculatable * Add changesets * Extract API * Typos * Clean up * Actually accept calculations * Add Value.hasCalculation helper * Rename parameter * Extract API --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Calculatable `transform` functions (#1457) * Streamline parsers * Clean up * Share parsers in tests * Add Matrix parsing tests * Simplify Matrix parser * Improve parseIf * Improve parser * Add tests for Rotate prasing * Add tests for Rotate prasing * Simplify parser * Simplify parser * Add Scale parsing tests * Simplify Scale parser * Simplify parsers * Add Skew parsing tests * Simplify Skew parsers * Add Translate tests * Simplify parsers * Clean up * Extract API * Typos * Make translate Function calculatable * Make matrix calculatable * Make matrix calculatable * Streamline Perspective * Make Perspective calculatable * Make Rotate calculatable * Add calculated rotate tests * Add calculated rotate tests * Make Scale calculatable * Accept calculation in Skew * Make Translate calculatable * Accept calculation in all transform function * Clean up * Extract API * Clean up * Extract API * Fix type inferrence * Extract API --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * SIA-R19: fix regression (#1459) * Add breaking test * Improve documentation * Correctly search for id in the full tree * Update documentation * Add changeset * v0.66.0 * Remove duplicate variable --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: siteimprove-builduser <8577410+siteimprove-builduser@users.noreply.github.com>
- Loading branch information
1 parent
0337ca8
commit 5f0f911
Showing
25 changed files
with
1,134 additions
and
845 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@siteimprove/alfa-css": minor | ||
--- | ||
|
||
**Added:** `Position` now accept calculations in any of their components. | ||
|
||
To fully resolve a `Position`, the resolver needs both a length resolver, and two percentage bases, one for each dimension. | ||
To partially resolve a `Position`, only a length resolver is needed. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@siteimprove/alfa-css": minor | ||
--- | ||
|
||
**Breaking:** `Position.Component` cannot be raw `LengthPercentage` anymore. | ||
|
||
Instead, they must always be a full `Position.Side` (or the "center" keyword) i.e. include an explicit side to count from. This side is automatically added when parsing raw `LengthPercentage`. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@siteimprove/alfa-css": minor | ||
--- | ||
|
||
**Changed:** The `Position` type requires more type paramters. | ||
|
||
Instead of just accepting the horizontal and vertical components, the type now also requires the horizontal and vertical keywords list (as first and second paramter). The components parameter default to `Position.Component<H>` (reps. `V`) for keywords `H` (resp. `V`). | ||
|
||
The type also accepts a `CALC` paramter indicating whether it may have calculations. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@siteimprove/alfa-css": minor | ||
--- | ||
|
||
**Removed:** The unused `Side.isCenter()` predicate is no longer available. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@siteimprove/alfa-css": patch | ||
--- | ||
|
||
**Added:** `Position.Side.of` now also accepts an optional offset, as well as an `Option<offset>`. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@siteimprove/alfa-css": patch | ||
--- | ||
|
||
**Added:** The `LengthPercentage` type now accepts an optional `CALC` boolean parameter to indicate whether it contains calculations. |
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
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
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
Oops, something went wrong.