From c3b79704e230229fefd27c57fcb934e72ec94075 Mon Sep 17 00:00:00 2001
From: Chris Mills Hello there! Hello there!sibling-index() multiplied by a ratio of the width of the
- <body> element and 1200px. At the time of
- writing, this works in Chromium 140+ and Safari 26+.
+ <body> element and 1200px. This works in
+ Chromium 140+, Firefox 158+, and Safari 26+.
background-color and
font-size should change depending on the viewport width, as
expressed in pixels in the --viewport-in-pixels custom
- property. At the time of writing, this works in Chromium 140+ and Safari
- 26+.
+ property. This works in Chromium 140+, Firefox 158+, and Safari 26+.
Prose of the century
sibling-index() multiplied by a ratio of the width of the
- <body> element and 1200px. This works in
- Chromium 140+, Firefox 158+, and Safari 26+.
+ <body> element and 1200px.
Hello there!
diff --git a/css-typed-arithmetic/animated-story-circle/style.css b/css-typed-arithmetic/animated-story-circle/style.css index 2958f42b..5379fd50 100644 --- a/css-typed-arithmetic/animated-story-circle/style.css +++ b/css-typed-arithmetic/animated-story-circle/style.css @@ -36,14 +36,26 @@ p { rotate: calc(var(--angle) * 1deg); } -/* Support information */ +/* information */ -.support-info { - padding: 5px; - background-color: yellow; - border: 1px solid black; +.info { position: absolute; top: 5px; left: 5px; - right: 5px; + line-height: 1.5; +} + +/* feature detection */ + +@supports not (opacity: calc((100cqw / 1200px) - 0.33333)) { + body::before { + content: "Your browser does not support typed arithmetic."; + background-color: wheat; + text-align: center; + padding: 1rem 0; + + z-index: 1; + position: fixed; + inset: 40% 0 auto; + } } diff --git a/css-typed-arithmetic/different-type-variations/index.html b/css-typed-arithmetic/different-type-variations/index.html index 39be2c2f..b9150a4d 100644 --- a/css-typed-arithmetic/different-type-variations/index.html +++ b/css-typed-arithmetic/different-type-variations/index.html @@ -6,11 +6,11 @@ -background-color and
- font-size should change depending on the viewport width, as
+ font-size change depending on the viewport width, as
expressed in pixels in the --viewport-in-pixels custom
- property. This works in Chromium 140+, Firefox 158+, and Safari 26+.
+ property.
Hello there!
diff --git a/css-typed-arithmetic/different-type-variations/style.css b/css-typed-arithmetic/different-type-variations/style.css index ffc8759b..39d27afe 100644 --- a/css-typed-arithmetic/different-type-variations/style.css +++ b/css-typed-arithmetic/different-type-variations/style.css @@ -12,10 +12,23 @@ p { ); } -/* Support information */ +/* information */ -.support-info { - padding: 5px; - background-color: yellow; - border: 1px solid black; +.info { + line-height: 1.5; +} + +/* feature detection */ + +@supports not (opacity: calc(100vw / 2000px)) { + body::before { + content: "Your browser does not support typed arithmetic."; + background-color: wheat; + text-align: center; + padding: 1rem 0; + + z-index: 1; + position: fixed; + inset: 40% 0 auto; + } } diff --git a/css-typed-arithmetic/index.html b/css-typed-arithmetic/index.html index edf3eef6..c7fc955c 100644 --- a/css-typed-arithmetic/index.html +++ b/css-typed-arithmetic/index.html @@ -1,4 +1,4 @@ - + @@ -29,7 +29,7 @@