Skip to content

Commit ca9b2a5

Browse files
committed
Add issue to color-stops about swapping steps 2 and 3 of the location fixup, so we can do interpolation purely at computed-value time.
1 parent 1d57d79 commit ca9b2a5

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

css4-images/Overview.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,6 +2329,13 @@ <h3 id=color-stop-syntax><span class=secno>5.5. </span> Gradient
23292329
with positions.
23302330
</ol>
23312331

2332+
<p class=issue> This requires us to wait until <em>after</em> layout to do
2333+
fix-up, because implied-position stops (set by step 3) may depend on stops
2334+
that need layout information to place, and which may be corrected by step
2335+
2. Swapping steps 2 and 3 would let us interpolate color-stops purely at
2336+
computed-value time, which is a nice plus, at the cost of changing
2337+
behavior from level 3 for some edge cases that triggered fixup.
2338+
23322339
<p> If multiple color-stops have the same position, they produce an
23332340
infinitesimal transition from the one specified first in the rule to the
23342341
one specified last. In effect, the color suddenly changes at that position

css4-images/Overview.src.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1894,6 +1894,15 @@ <h3 id='color-stop-syntax'>
18941894
set their positions so that they are evenly spaced between the preceding and following color-stops with positions.
18951895
</ol>
18961896

1897+
<p class='issue'>
1898+
This requires us to wait until <em>after</em> layout to do fix-up,
1899+
because implied-position stops (set by step 3)
1900+
may depend on stops that need layout information to place,
1901+
and which may be corrected by step 2.
1902+
Swapping steps 2 and 3 would let us interpolate color-stops purely at computed-value time,
1903+
which is a nice plus,
1904+
at the cost of changing behavior from level 3 for some edge cases that triggered fixup.
1905+
18971906
<p>
18981907
If multiple color-stops have the same position,
18991908
they produce an infinitesimal transition from the one specified first in the rule

0 commit comments

Comments
 (0)