forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Fail CSS color parse for "rgba(123, 123, 123, "
This matches the behavior of other browsers and fixes a WPT test. (cherry picked from commit 902586a21de3ef8335e447053d82057c4c927d72; amended expected output because serenity does not yet have LadybirdBrowser/ladybird#1603)
- Loading branch information
1 parent
b71d94a
commit eb800f3
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
Tests/LibWeb/Text/expected/canvas/fillStyle-bogus-rgba-color.txt
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,2 @@ | ||
#008000 | ||
#008000 |
12 changes: 12 additions & 0 deletions
12
Tests/LibWeb/Text/input/canvas/fillStyle-bogus-rgba-color.html
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,12 @@ | ||
<script src="../include.js"></script> | ||
<canvas id="c" width=300 height=300></canvas> | ||
<script> | ||
test(() => { | ||
let x = c.getContext("2d"); | ||
x.fillStyle = 'green'; | ||
println(x.fillStyle); | ||
x.fillStyle = 'rgba(255, 0, 0, '; | ||
println(x.fillStyle); | ||
c.remove(); | ||
}); | ||
</script> |
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