mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Always serialize CSSScale with at least two values
This commit is contained in:
parent
3083b19b09
commit
61f9b324c7
Notes:
github-actions[bot]
2025-11-18 14:46:03 +00:00
Author: https://github.com/gmta
Commit: 61f9b324c7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6856
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 8 additions and 10 deletions
|
|
@ -119,10 +119,8 @@ WebIDL::ExceptionOr<Utf16String> CSSScale::to_string() const
|
|||
builder.append(TRY(m_x->to_string()));
|
||||
|
||||
// 3. If this’s x and y internal slots are equal numeric values, append ")" to s and return s.
|
||||
if (m_x->is_equal_numeric_value(m_y)) {
|
||||
builder.append(")"sv);
|
||||
return builder.to_utf16_string();
|
||||
}
|
||||
// AD-HOC: Don't do this - neither Chrome nor Safari show this behavior.
|
||||
// Upstream issue: https://github.com/w3c/css-houdini-drafts/issues/1161
|
||||
|
||||
// 4. Otherwise, append ", " to s.
|
||||
builder.append(", "sv);
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ Harness status: OK
|
|||
|
||||
Found 82 tests
|
||||
|
||||
64 Pass
|
||||
18 Fail
|
||||
68 Pass
|
||||
14 Fail
|
||||
Pass Interpolation between translateX(0px) and translateX(50px) gives the correct computed value halfway according to computedStyleMap.
|
||||
Pass Interpolation between translateX(0px) and translateX(50px) gives the correct computed value halfway according to computedStyleMap with zoom active.
|
||||
Pass Interpolation between translateX(0%) and translateX(50%) gives the correct computed value halfway according to computedStyleMap.
|
||||
|
|
@ -40,8 +40,8 @@ Fail Interpolation between rotateX(0deg) and rotateX(90deg) gives the correct co
|
|||
Fail Interpolation between rotateX(0deg) and rotateX(90deg) gives the correct computed value halfway according to computedStyleMap with zoom active.
|
||||
Fail Interpolation between rotate(0deg) and rotateX(90deg) gives the correct computed value halfway according to computedStyleMap.
|
||||
Fail Interpolation between rotate(0deg) and rotateX(90deg) gives the correct computed value halfway according to computedStyleMap with zoom active.
|
||||
Fail Interpolation between scale(1) and scale(2) gives the correct computed value halfway according to computedStyleMap.
|
||||
Fail Interpolation between scale(1) and scale(2) gives the correct computed value halfway according to computedStyleMap with zoom active.
|
||||
Pass Interpolation between scale(1) and scale(2) gives the correct computed value halfway according to computedStyleMap.
|
||||
Pass Interpolation between scale(1) and scale(2) gives the correct computed value halfway according to computedStyleMap with zoom active.
|
||||
Pass Interpolation between scale(1, 3) and scale(2) gives the correct computed value halfway according to computedStyleMap.
|
||||
Pass Interpolation between scale(1, 3) and scale(2) gives the correct computed value halfway according to computedStyleMap with zoom active.
|
||||
Pass Interpolation between scaleX(1) and scaleX(2) gives the correct computed value halfway according to computedStyleMap.
|
||||
|
|
@ -50,8 +50,8 @@ Pass Interpolation between scaleY(1) and scaleY(2) gives the correct computed va
|
|||
Pass Interpolation between scaleY(1) and scaleY(2) gives the correct computed value halfway according to computedStyleMap with zoom active.
|
||||
Pass Interpolation between scaleZ(1) and scaleZ(2) gives the correct computed value halfway according to computedStyleMap.
|
||||
Pass Interpolation between scaleZ(1) and scaleZ(2) gives the correct computed value halfway according to computedStyleMap with zoom active.
|
||||
Fail Interpolation between scaleX(2) and scaleY(2) gives the correct computed value halfway according to computedStyleMap.
|
||||
Fail Interpolation between scaleX(2) and scaleY(2) gives the correct computed value halfway according to computedStyleMap with zoom active.
|
||||
Pass Interpolation between scaleX(2) and scaleY(2) gives the correct computed value halfway according to computedStyleMap.
|
||||
Pass Interpolation between scaleX(2) and scaleY(2) gives the correct computed value halfway according to computedStyleMap with zoom active.
|
||||
Pass Interpolation between scaleX(2) and scaleY(3) gives the correct computed value halfway according to computedStyleMap.
|
||||
Pass Interpolation between scaleX(2) and scaleY(3) gives the correct computed value halfway according to computedStyleMap with zoom active.
|
||||
Pass Interpolation between scaleZ(1) and scale(2) gives the correct computed value halfway according to computedStyleMap.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue