Created
August 12, 2024 19:12
-
-
Save myfonj/ec75de9d25a8ab8ba33bda60986178bc to your computer and use it in GitHub Desktop.
Chrome radial-gradient closest-side color stop nearing 100% clamps to infinity
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
/** Chrome radial-gradient closest-side color stop nearing 100% clamps to infinity | |
*/ | |
.a { background-image: radial-gradient(closest-side, red 50%, white 0) } | |
.b { background-image: radial-gradient(closest-side, red 99%, white 0) } | |
.c { background-image: radial-gradient(closest-side, red 99.609371185302727214061491167740314267575740814208984374%, white 0)} | |
.d { background-image: radial-gradient(closest-side, red 99.609371185302727214061491167740314267575740814208984375%, white 0)} | |
.e { background-image: radial-gradient(closest-side, red 100%, white 0)} | |
p { width: 15vw; height: 15vw; margin-right: 2vw; background-color: #ccc; float: left; word-break: break-all; word-wrap: break-word; border: 1px solid; } |
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
<p class="a">50% (OK) | |
<p class="b">99% (OK) | |
<p class="c">99.609371185302727214061491167740314267575740814208984374% (still OK) | |
<p class="d">99.609371185302727214061491167740314267575740814208984375% (error in Chrome) | |
<p class="e">100% (error in Chrome) |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment