Conversation

How to transform black into any given color using only CSS filters? The answer: Use simultaneous perturbation stochastic approximation to probabilistically obtain an approximation of the color through a chain of filter transforms... stackoverflow.com/a/43960991 Web development.
1
12
Can use codepen.io/sosuke/pen/Pjo to generate a filter chain closely approximately the color via the probabilistic algorithm above. Tweaking it to use a loop until it gets one with insignificant loss is simple enough and it doesn't take long. How is the web this screwed up though?
1
3
Replying to and
Using 100vh as min-height is our baseline approach but that doesn't actually work consistently / properly. We need the CSS stretch feature (formerly called fill-available and fill, forget the exact history) which isn't fully standardized yet so it's as -webkit-fill-available.
1
Replying to and
Chromium silently broke the design at one point and started showing the footer immediately under the content since they changed the semantics of -webkit-fill-available as the spec evolved. We didn't notice for a while and then had to figure out the weird workaround needed for it.
1
2
Replying to and
Ended up having to set -webkit-fill-available for html in addition to body and that resolved it. Guess you need to apply it all the way up the page in order to fill the available space now. Anyway, depending on underspecified, evolving and often buggy WIP features isn't great.
1
Replying to and
What I really need to figure out is twitter.com/DanielMicay/st. Our site now has a favicon.svg changing color based on whether the browser has dark mode enabled. Chromium prefers favicon.ico since it wants hand-crafted pixel art for 16x16, 32x32, etc. which we don't have anyway.
Quote Tweet
Really annoyed at a combination of Chromium and Safari issues right now. Safari doesn't have SVG favicon support yet and Chromium won't use an SVG favicon if there's an ICO favicon defined. Need Chromium to use the SVG favicon so we can extend it to change based on dark mode.
Replying to and
Yet it works fine without a CSP policy when used as a favicon or included via an img element since the CSP specification says that it doesn't apply to SVG included as img. It has some weird rules. Firefox had a bug where they applied it to SVG for img but they fixed it.
1
Show replies