mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
layout: Correctly calculate the angle for gradients with corners
The previous code assumed that the diagonals of the elements were perpendicular, which only happens with squares. tests: layout: Test linear gradient corners
This commit is contained in:
parent
5668a55ef4
commit
37d1c749aa
4 changed files with 114 additions and 26 deletions
|
@ -3120,6 +3120,18 @@
|
|||
"url": "/_mozilla/css/linear_gradients_lengths_a.html"
|
||||
}
|
||||
],
|
||||
"css/linear_gradients_non_square_a.html": [
|
||||
{
|
||||
"path": "css/linear_gradients_non_square_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/linear_gradients_non_square_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/linear_gradients_non_square_a.html"
|
||||
}
|
||||
],
|
||||
"css/linear_gradients_parsing_a.html": [
|
||||
{
|
||||
"path": "css/linear_gradients_parsing_a.html",
|
||||
|
@ -10124,6 +10136,18 @@
|
|||
"url": "/_mozilla/css/linear_gradients_lengths_a.html"
|
||||
}
|
||||
],
|
||||
"css/linear_gradients_non_square_a.html": [
|
||||
{
|
||||
"path": "css/linear_gradients_non_square_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/linear_gradients_non_square_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/linear_gradients_non_square_a.html"
|
||||
}
|
||||
],
|
||||
"css/linear_gradients_parsing_a.html": [
|
||||
{
|
||||
"path": "css/linear_gradients_parsing_a.html",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue