-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REGRESSION(267072@main): round/mod/rem crashes when combining length …
…& non-percentage units https://bugs.webkit.org/show_bug.cgi?id=260941 rdar://114695951 Reviewed by Cameron McCormack. The previous code assumed that the second type always would be a percentage, which is not necessarily true. `calc(mod(0px, 0deg))` is an example where the current code fails. * LayoutTests/imported/w3c/web-platform-tests/css/css-values/mod-length-degrees-crash.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-values/rem-length-degrees-crash.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-values/round-length-degrees-crash.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-values/round-mod-rem-invalid-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-values/round-mod-rem-invalid.html: * Source/WebCore/css/calc/CSSCalcOperationNode.cpp: (WebCore::resolvedTypeForStep): Canonical link: https://commits.webkit.org/267485@main
- Loading branch information
Showing
6 changed files
with
76 additions
and
10 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
LayoutTests/imported/w3c/web-platform-tests/css/css-values/mod-length-degrees-crash.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,6 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=260941"> | ||
|
||
<p>PASS if no crash.</p> | ||
<div style="height: calc(mod(0px, 0deg))"></div> |
6 changes: 6 additions & 0 deletions
6
LayoutTests/imported/w3c/web-platform-tests/css/css-values/rem-length-degrees-crash.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,6 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=260941"> | ||
|
||
<p>PASS if no crash.</p> | ||
<div style="height: calc(rem(0px, 0deg))"></div> |
6 changes: 6 additions & 0 deletions
6
LayoutTests/imported/w3c/web-platform-tests/css/css-values/round-length-degrees-crash.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,6 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=260941"> | ||
|
||
<p>PASS if no crash.</p> | ||
<div style="height: calc(round(0px, 0deg))"></div> |
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