From 52747d2db63967bce90849dd8574a8cf34664144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Parmentier?= Date: Wed, 14 Aug 2024 17:04:24 +0200 Subject: [PATCH] data: add light-dark function --- _features/css-function-light-dark.md | 167 +++++++++++++++++++++++++++ tests/css-function-light-dark.html | 61 ++++++++++ 2 files changed, 228 insertions(+) create mode 100644 _features/css-function-light-dark.md create mode 100644 tests/css-function-light-dark.html diff --git a/_features/css-function-light-dark.md b/_features/css-function-light-dark.md new file mode 100644 index 00000000..22a7f7f2 --- /dev/null +++ b/_features/css-function-light-dark.md @@ -0,0 +1,167 @@ +--- +title: "light-dark()" +description: "Enables setting two colors (one for light and the other for dark mode) for a property." +category: css +keywords: dark, light +last_test_date: "2024-08-14" +test_url: "/tests/css-function-light-dark.html" +test_results_url: "https://app.emailonacid.com/app/acidtest/Lai13xyIE95H6jo1BBs6ay0f3RvJdPL344S3j3M7FbeU4/list" +stats: { + apple-mail: { + macos: { + "16.0":"y #1" + }, + ios: { + "17.5.1":"y" + } + }, + gmail: { + desktop-webmail: { + "2024-08":"n" + }, + ios: { + "2024-08":"n" + }, + android: { + "2024-08":"n" + }, + mobile-webmail: { + "2024-08":"n" + } + }, + orange: { + desktop-webmail: { + "2024-08":"n" + }, + ios: { + "2024-08":"n" + }, + android: { + "2024-08":"u" + } + }, + outlook: { + windows: { + "2007":"n", + "2010":"n", + "2013":"n", + "2016":"n", + "2019":"n" + }, + windows-mail: { + "2024-08":"n" + }, + macos: { + "16.88":"n" + }, + outlook-com: { + "2024-08":"n" + }, + ios: { + "2024-08":"n" + }, + android: { + "2024-08":"u" + } + }, + samsung-email: { + android: { + "6.0":"u" + } + }, + sfr: { + desktop-webmail: { + "2024-08":"a #2" + }, + ios: { + "2024-08":"a #1 #2" + }, + android: { + "2024-08":"u" + } + }, + thunderbird: { + macos: { + "115.10.1":"n", + "128.1.0":"y", + } + }, + aol: { + desktop-webmail: { + "2024-08":"n" + }, + ios: { + "2024-08":"n" + }, + android: { + "2024-08":"u" + } + }, + yahoo: { + desktop-webmail: { + "2024-08":"n" + }, + ios: { + "2024-08":"n" + }, + android: { + "2024-08":"u" + } + }, + protonmail: { + desktop-webmail: { + "2024-08":"a #2" + }, + ios: { + "2024-08":"y #1" + }, + android: { + "2024-08":"u" + } + }, + hey: { + desktop-webmail: { + "2024-08":"a #2" + } + }, + mail-ru: { + desktop-webmail: { + "2024-08":"a #2" + } + }, + fastmail: { + desktop-webmail: { + "2024-08": "u" + } + }, + laposte: { + desktop-webmail: { + "2024-08": "a #2" + } + }, + free-fr: { + desktop-webmail: { + "2024-08": "n" + } + }, + t-online-de: { + desktop-webmail: { + "2024-08": "a #2" + } + }, + gmx: { + desktop-webmail: { + "2024-08": "n" + }, + }, +} +notes_by_num: { + "1": "Only supported if you’ve updated your OS with Safari 17.5 or later.", + "2": "Buggy. The function is supported but the color stays light even in dark mode.", +} +links: { + "Can I use: light-dark()":"https://caniuse.com/mdn-css_types_color_light-dark", + "MDN: light-dark()":"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/light-dark", + "WebKit Features in Safari 17.5":"https://webkit.org/blog/15383/webkit-features-in-safari-17-5/", +} +--- diff --git a/tests/css-function-light-dark.html b/tests/css-function-light-dark.html new file mode 100644 index 00000000..642524c9 --- /dev/null +++ b/tests/css-function-light-dark.html @@ -0,0 +1,61 @@ + + + + + + Can I email + + + + + + + + + +
+

+ CSS light-dark() function +

+

+ color: light-dark(blue, green); +

+
+

+ Named values. Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus, adipisci! Cum harum quaerat maxime obcaecati ullam est necessitatibus, accusamus vero aperiam eius iusto quas inventore error facere rerum, suscipit earum! +

+

+ Hex values. Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus, adipisci! Cum harum quaerat maxime obcaecati ullam est necessitatibus, accusamus vero aperiam eius iusto quas inventore error facere rerum, suscipit earum! +

+
+

+ background-color: light-dark(blue, green); +

+
+

+ Named values. Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus, adipisci! Cum harum quaerat maxime obcaecati ullam est necessitatibus, accusamus vero aperiam eius iusto quas inventore error facere rerum, suscipit earum! +

+

+ Hex values. Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus, adipisci! Cum harum quaerat maxime obcaecati ullam est necessitatibus, accusamus vero aperiam eius iusto quas inventore error facere rerum, suscipit earum! +

+
+

+ https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/light-dark
+ +

+

+ caniemail.com, 2024. +

+
+ +