SShortSingh.
Back to feed

A CSS Shadow Can Expose Opaque Pixels Hidden in an Icon Asset

0
·2 views

A shadow that follows a rectangular image box looks different from one tracing an icon's visible shape, and a solid rectangular silhouette may indicate opaque pixels in the file rather than a CSS fault. The article points to MDN's drop-shadow documentation, which explains that the filter relies on the image's alpha mask, and suggests comparing it with a standard box shadow. It warns that a white rectangle stored in the asset can distort the filtered silhouette, and that aggressively converting white to transparent may remove intended white details such as eyes or small labels. To separate source problems from styling effects, the author recommends testing the asset on a contrasting background without component styles, checking it at actual icon size, and keeping the unmodified file for comparison. Changing one asset at a time with consistent dimensions and shadow settings helps identify which file holds the problem.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Čo je llms.txt a či ho váš web potrebuje

llms.txt je navrhovaný štandard, ide o jednoduchý textový súbor umiestnený v koreni webu, ktorý pomáha jazykovým modelom a AI agentom pochopiť, čím sa web zaoberá. Namiesto navigácie, skriptov a štýlov ponúka čistý prehľad v Markdowne so základným popisom, zoznamom dôležitých stránok a kontaktnými údajmi. Niektoré AI nástroje ho čítajú, no žiadny veľký vyhľadávač zatiaľ nepotvrdil, že ho využíva na hodnotenie stránok. Vytvorenie súboru je lacné a jednoduché, no nenahrádza kvalitný obsah ani SEO. Existenciu súboru možno overiť priamo v prehliadači alebo bezplatným skenom.

0
ProgrammingDEV Community ·

How OpenAI runs PostgreSQL for 800 million users without sharding

OpenAI serves ChatGPT from one PostgreSQL primary that handles all writes, supported by nearly 50 read replicas spread across regions. Rather than sharding its existing Postgres deployment, which would require changing hundreds of application endpoints, the company keeps load off the primary by routing reads to replicas and moving shardable, write-heavy workloads to systems like Azure Cosmos DB. It has also stopped adding new tables to this Postgres deployment and applies strict limits at every layer to prevent a single load spike from causing a wider outage. The article, drawing on OpenAI's January 2026 engineering post, describes how outages typically start with a sudden surge that triggers retries and cascading failures. Practical lessons include adding cache-miss locking, setting lock timeouts on migrations, and auditing write queries with pg_stat_statements.

0
ProgrammingDEV Community ·

Cuenta de pruebas conserva permisos de producción meses después del lanzamiento

Un equipo que probó una integración con una cuenta temporal recibió permisos amplios para consultar pedidos reales. Tras un lanzamiento exitoso, la cuenta siguió activa meses después, sin que nadie recordara quién custodiaba su clave ni qué proceso la usaba. El problema radica en que la fecha de retirada nunca se incluyó en el plan, de modo que desactivarla de golpe podría romper procesos y mantenerla deja un acceso sin responsable claro. El artículo propone registrar para cada acceso de prueba quién lo solicitó, qué permisos tiene, cuándo caduca y cómo verificar su retirada. Además, recomienda validar con permisos mínimos definitivos antes de cerrar el proyecto, ya que un despliegue no está completo mientras sus accesos temporales sigan siendo permanentes.

0
ProgrammingDEV Community ·

Paddle as Merchant of Record Turns Dunning Into a Handoff Problem for Sellers

Sellers using Paddle as merchant of record find that failed-payment recovery depends on managing handoffs rather than controlling every charge attempt. Because Paddle handles the first retries and the statement name, sellers see subscriptions move through past-due, paused, and cancelled states instead of raw payment failures. Duplicate recovery efforts risk charging or emailing customers twice, so sellers are advised to avoid competing with the platform's own retries. Sellers retain responsibilities such as capturing card updates, timing retries, checking live subscription status, and setting customer expectations about the billing name. Reconciling recovered revenue against Paddle's own ledger is also recommended, since the platform serves as the system of record.