Support variable-backed CSS feature queries

This commit is contained in:
SGavrl committed 2026-08-04 08:08:05 +00:00
1 parent 98c53b6b15
commit 0a8c0feb06
3 files changed
+313 -2

No files matched your search

+3
View File
@@ -298,6 +298,9 @@
{"name": "text alignment does not shrink a flex item", "color": "#087f5b", "x": 20, "y": 20, "width": 360, "height": 80},
{"name": "inherited text alignment centers inline content", "color": "#c2255c", "x": 150, "y": 100, "width": 100, "height": 20}
],
"supports-var-feature-query": [
{"name": "variable feature query enables implemented grid support", "color": "#2f9e44", "x": 0, "y": 0, "width": 240, "height": 40}
],
"transform-containing-block": [
{"name": "absolute captured by transform", "color": "#087f5b", "x": 205, "y": 160, "width": 70, "height": 55},
{"name": "fixed captured by transform", "color": "#1971c2", "x": 335, "y": 235, "width": 80, "height": 50},
@@ -0,0 +1,12 @@
<!doctype html>
<meta charset="utf-8">
<style>
* { box-sizing: border-box }
body { margin: 0 }
#probe { width: 100px; height: 40px; background: #e03131 }
@supports (grid: var(--tw)) {
#probe { width: 240px; background: #2f9e44 }
}
</style>
<div id="probe"></div>