mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
ffa1da7545
For example, if we set a transform to rotate3d(0, 0, 1e50, 45deg), the expected normalized rotate axis is (0, 0, 1). However, the length is larger than the maximum of float, so the actual value is (0/inf, 0/inf, 1e50/inf) == (0, 0, 0). Therefore, we scale the vector before doing normalization to avoid getting a zero vector. MozReview-Commit-ID: 5LUDWD4RuNj --HG-- extra : rebase_source : eb82f0b3979bf6ea3cd11b643ebb30a49edc24f8
10 lines
153 B
HTML
10 lines
153 B
HTML
<html>
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<div style="transform: rotate3d(1e50, 0, 0, 45deg); width: 100px; height: 100px;">
|
|
Test Text
|
|
</div>
|
|
</body>
|
|
</html>
|