---
title: "Day 83: computed values in container style queries"
url: https://daily.dev/posts/day-83-computed-values-in-container-style-queries-ha8thfg3q
source_url: https://www.matuzo.at/blog/2023/100daysof-day83
type: article
source: "Manuel Matuzović"
published: 2026-06-22T14:42:17.350Z
updated: 2026-06-22T14:45:58.809Z
tags: ["css"]
reading_time: 3
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Day 83: computed values in container style queries

**[Manuel Matuzović](https://daily.dev/sources/matuzo)** · 3 min read · 0 upvotes · 0 comments

## Summary

CSS container style queries compare computed values rather than raw assignments. When querying a custom property like `--bg`, both sides of the query are resolved before comparison — meaning `var(--color-red)` and `red` are treated as equal if they resolve to the same computed value. This behavior applies regardless of whether the value was assigned directly or via a CSS variable reference.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.matuzo.at/blog/2023/100daysof-day83>

---

Tags: [#css](https://daily.dev/tags/css)

[View this post on daily.dev](https://daily.dev/posts/day-83-computed-values-in-container-style-queries-ha8thfg3q)
