Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Tag: Progressive Enhancement

CSS

CSS: Fix a :has() Selector Silently Matching Nothing in Production Because an Older Browser in Your Support Matrix Doesn’t Implement It

- 05.11.26 - ErcanOPAK comment on CSS: Fix a :has() Selector Silently Matching Nothing in Production Because an Older Browser in Your Support Matrix Doesn’t Implement It

🎨 CSS: Fix a :has() Selector Silently Matching Nothing in Production Because an Older Browser in Your Support Matrix Doesn’t Implement It The :has() relational pseudo-class lets a parent selector react to its own descendants — .card:has(img) styling a card differently when it actually contains an image — and shipped broadly across Chromium, Safari, and […]

Read More
HTML

HTML5: Fix the details Element’s Open State Silently Being Ignored Because It Was Toggled by Script Before First Paint

- 21.10.26 - ErcanOPAK comment on HTML5: Fix the details Element’s Open State Silently Being Ignored Because It Was Toggled by Script Before First Paint

🧩 The Accordion That Opens for Everyone Except the Script That Opened It Setting a details element’s open property via JavaScript before the browser has completed its first render of that element can be silently swallowed in some browser engines when the script runs early enough in the parsing pipeline – particularly when the toggle […]

Read More
CSS

CSS: Fix a :has() Selector That Silently Matches Nothing Because One Unsupported Clause Invalidates the Whole Rule

- 10.10.26 - ErcanOPAK comment on CSS: Fix a :has() Selector That Silently Matches Nothing Because One Unsupported Clause Invalidates the Whole Rule

🎨 The Selector a Browser Throws Away Whole, Not Partly CSS parses and validates an entire selector list as one unit – if a browser doesn’t recognize part of a selector, an unsupported pseudo-class, or a :has() argument that particular browser version doesn’t support, the whole selector is treated as invalid and the entire rule […]

Read More
HTML

HTML5: Replace 200 Lines of Modal JavaScript With One Native <dialog> Element

- 30.08.26 - ErcanOPAK comment on HTML5: Replace 200 Lines of Modal JavaScript With One Native <dialog> Element

🧩 One Tag = Zero Modal Library Most sites still ship a custom modal library — hundreds of lines of JavaScript, CSS overlays, focus-trap logic, and accessibility patches — to do something HTML5 has supported natively for years: the <dialog> element. ✅ The Old Way (What Most Sites Still Do) A hand-rolled modal usually needs: […]

Read More
HTML

HTML: Progressive Enhancement for Better UX

- 15.08.26 - ErcanOPAK comment on HTML: Progressive Enhancement for Better UX

📈 Progressive Enhancement = Better UX Not everyone has the latest browser. Progressive enhancement ensures your site works for everyone. 📝 Progressive Enhancement Patterns <!– Basic HTML works everywhere –> <button id=”load-more”>Load More</button> <!– Enhanced with JavaScript –> <script> if (‘fetch’ in window) { const button = document.getElementById(‘load-more’); button.addEventListener(‘click’, async () => { const response […]

Read More
CSS

Create Smooth Page Transitions with CSS View Transitions API (No JavaScript)

- 01.02.26 | 01.02.26 - ErcanOPAK comment on Create Smooth Page Transitions with CSS View Transitions API (No JavaScript)

Page navigation feels jarring? The new CSS View Transitions API creates native app-like transitions without a single line of JavaScript. The Basic Setup: /* Enable view transitions for all navigations */ @view-transition { navigation: auto; } /* Customize the transition */ ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; animation-timing-function: ease-in-out; } /* Fade effect */ ::view-transition-old(root) { […]

Read More
November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (981)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (858)
  • How to select distinct rows in a datatable in C# (854)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (653)
  • Add Constraint to SQL Table to ensure email contains @ (609)
  • Average of all values in a column that are not zero in SQL (570)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (547)
  • Find numbers with more than two decimal places in SQL (475)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit
  • SQL Server: Fix ROW_NUMBER Ties Reordering Between Identical Runs
  • C#: Fix an Enum HasFlag Returning True for the Zero Value
  • WordPress: Fix Featured Images Vanishing After a CDN Migration
  • Photoshop: Fix Content-Aware Fill Smearing a Repeating Pattern
  • Asp.Net Core: Fix Antiforgery Tokens Rejected Behind a Reverse Proxy

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (981)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (858)
  • How to select distinct rows in a datatable in C# (854)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com