CSS Specificity Battle – Compare Two Selectors Side by Side
Enter two CSS selectors and see which one wins in a specificity battle. Displays the (a,b,c) score and explains why one overrides the other.
UD5 Toolkit
Instantly calculate and compare CSS selector specificity. See exact (0,0,1,0) scores and understand which rule wins.
:not() and :is() contribute the specificity of their most specific argument. This tool gives them a single class‑level weight for simplicity — good enough for most everyday selectors. :where() adds zero specificity.!important overrides normal specificity. Inline styles have the highest specificity (a=1,0,0,0) unless !important is used. This calculator focuses on selector-based specificity only..class, #id) contains independent selectors. Each has its own specificity — they aren’t combined. Enter one selector chain at a time to get a meaningful result.Enter two CSS selectors and see which one wins in a specificity battle. Displays the (a,b,c) score and explains why one overrides the other.
Write modern CSS color functions like oklch(), lab(), hwb() and see the rendered color with fallback. Copy compatible code.
Dynamically blend two colors using the CSS color‑mix() function in different color spaces. Copy the exact CSS snippet. No JS required.
Style an `<input type='range'>` with custom track and thumb. Cross‑browser CSS. Preview and copy the code.
Enter number of eyelet pairs and lacing style to find the correct shoelace length in inches/cm. Never buy too short.
Enter two city names or coordinates and get the straight‑line distance in miles/km. Local calculation.
Estimate the sinker weight needed to hold bottom in current based on line diameter, depth, and current speed.
Enter piece count and piece size to estimate finished dimensions. Check if it fits your table.
Enter rolls remaining and household size to estimate weeks of supply. A humorous yet practical aid.
Enter amount of kernels and see estimated popped volume. Plan movie night snacks perfectly.
Calculate ideal stereo speaker placement (toe-in, distance from wall) for best soundstage. Visual diagram. For audiophiles. Local tool.
Find the optimal TV size for your room or the best viewing distance based on screen size and resolution (1080p, 4K, 8K). Simple THX/SMPTE reference.
Estimate BAC based on gender, weight, drinks consumed, and time. Uses Widmark formula. Educational tool, never encourage drunk driving. Local only.
Enter any date and get its ISO week number, plus the start and end dates of that week. Quick reference.
Paste your CSS and see warnings for properties that have limited browser support. Links to CanIUse. Modernize safely.
Enter a hex color and get its relative luminance per WCAG definition. Understand why this matters for contrast.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Create a customizable checkerboard or grid background using pure CSS gradients. Adjust cell size and colors. Copy the code.
Add N business days to a date, skipping weekends and optionally entering custom holidays. Regional presets.
Create a custom HTML/CSS progress bar with percentage, colors, and animation. Copy the code. Modern UI element.
Calculate the exact number of days, weeks, months, and workdays between two dates. Visual calendar highlights. Perfect for projects.
Choose your cup size and sweetness level, and get exact proportions for tea, milk, syrup, and tapioca pearls. Perfect homemade boba every time.
Combine multiple identical batteries in series and parallel and see the resulting voltage and total capacity. Electronics helper.
Easily compute posterior probabilities given prior, likelihood, and marginal likelihood. Visual diagram. All local.
Find out how large you can print based on image resolution in pixels. Understand DPI and megapixels.
Learn about f‑stops and their effect on light and depth. Calculate equivalent exposure adjustments. Educational.
Measure your waist‑to‑hip ratio and learn about associated health risks. WHR interpretation. Educational only.
Find what day of the week any past or future date falls on. Uses Zeller’s congruence. Fun historical reference tool.