Skip to content

Commit f1a62a0

Browse files
committed
[css-values-4] Change complicated list of pow() special-cases to four easier-to-read tables.
1 parent f3f00b2 commit f1a62a0

File tree

1 file changed

+63
-26
lines changed

1 file changed

+63
-26
lines changed

css-values-4/Overview.bs

+63-26
Original file line numberDiff line numberDiff line change
@@ -2708,32 +2708,69 @@ Argument Ranges</h4>
27082708

27092709
In ''pow(A, B)'':
27102710

2711-
<dl class=switch>
2712-
: if A is ±∞ and B is 0
2713-
:: the result is 1
2714-
: if A is +∞ and B is greater than 0
2715-
:: the result is +∞
2716-
: if A is +∞ and B is less than 0
2717-
:: the result is 0
2718-
: if A is -∞ and B is greater than 0
2719-
:: the result is -∞ if B is an odd integer, +∞ otherwise
2720-
: if A is -∞ and B is less than 0
2721-
:: the result is 0⁻ if B is an odd integer, 0⁺ otherwise
2722-
2723-
: if A is in the (exclusive) range (-1, 1) and B is +∞
2724-
:: the result is 0⁺
2725-
: if A is 1 or -1 and B is +∞
2726-
:: the result is NaN
2727-
: if A is less than -1 or greater than 1, and B is +∞
2728-
:: the result is +∞
2729-
2730-
: if A is in the (exclusive) range (-1, 1) and B is -∞
2731-
:: the result is +∞
2732-
: if A is 1 or -1 and B is -∞
2733-
:: the result is NaN
2734-
: if A is less than -1 or greater than 1, and B is -∞
2735-
:: the result is 0⁺
2736-
</dl>
2711+
<table class=data>
2712+
<thead>
2713+
<tr><th scope=col colspan=3>A is +∞
2714+
<tr>
2715+
<th>B is < 0
2716+
<th>B is 0
2717+
<th>B is > 0
2718+
</thead>
2719+
<tr>
2720+
<td>result is +∞
2721+
<td>result is 1
2722+
<td>result is 0
2723+
</table>
2724+
2725+
<table class=data>
2726+
<thead>
2727+
<tr><th scope=col colspan=3>A is -∞
2728+
<tr>
2729+
<th>B is < 0
2730+
<th>B is 0
2731+
<th>B is > 0
2732+
</thead>
2733+
<tr>
2734+
<td>result is 0⁻ if B is an odd integer, 0⁺ otherwise
2735+
<td>result is 1
2736+
<td>result is -∞ if B is an odd integer, +∞ otherwise
2737+
</table>
2738+
2739+
<table class=data>
2740+
<thead>
2741+
<tr><th scope=col colspan=5>B is +∞
2742+
<tr>
2743+
<th>A is < -1
2744+
<th>A is -1
2745+
<th>-1 < A < 1
2746+
<th>A is 1
2747+
<th>A is > 1
2748+
</thead>
2749+
<tr>
2750+
<td>result is +∞
2751+
<td>result is NaN
2752+
<td>result is 0⁺
2753+
<td>result is NaN
2754+
<td>result is +∞
2755+
</table>
2756+
2757+
<table class=data>
2758+
<thead>
2759+
<tr><th scope=col colspan=5>B is -∞
2760+
<tr>
2761+
<th>A is < -1
2762+
<th>A is -1
2763+
<th>-1 < A < 1
2764+
<th>A is 1
2765+
<th>A is > 1
2766+
</thead>
2767+
<tr>
2768+
<td>result is 0⁺
2769+
<td>result is NaN
2770+
<td>result is +∞
2771+
<td>result is NaN
2772+
<td>result is 0⁺
2773+
</table>
27372774

27382775
In ''sqrt(A)'',
27392776
if A is +∞,

0 commit comments

Comments
 (0)