From fb2d22d66a8ff38699fdd1a81c45b0e4753aa206 Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Thu, 13 Oct 2022 10:00:10 -0700 Subject: [PATCH] Implement toggle-visibility CSS property. See specification: https://tabatkins.github.io/css-toggle/#toggle-visibility-property and clarifying discussion in: https://github.com/tabatkins/css-toggle/issues/38 (Support for toggles is behind the CSSToggles flag, which is currently off.) Bug: 1250716 Change-Id: Ib29d879b7ba81dcfe95cb59fe6e6b66f0e24e528 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3922815 Reviewed-by: Joey Arhar Reviewed-by: Vladimir Levin Commit-Queue: David Baron Cr-Commit-Position: refs/heads/main@{#1058772} --- ...e-visibility-z-ordering-001.tentative.html | 40 +++ ...e-visibility-z-ordering-002.tentative.html | 44 +++ .../toggle-visibility.tentative.html | 267 ++++++++++++++++++ 3 files changed, 351 insertions(+) create mode 100644 css/css-toggle/toggle-visibility-z-ordering-001.tentative.html create mode 100644 css/css-toggle/toggle-visibility-z-ordering-002.tentative.html create mode 100644 css/css-toggle/toggle-visibility.tentative.html diff --git a/css/css-toggle/toggle-visibility-z-ordering-001.tentative.html b/css/css-toggle/toggle-visibility-z-ordering-001.tentative.html new file mode 100644 index 00000000000000..50f5d35f19296b --- /dev/null +++ b/css/css-toggle/toggle-visibility-z-ordering-001.tentative.html @@ -0,0 +1,40 @@ + + +CSS Toggles: toggle-visibility + + + + + + + + +

Test passes if there is a filled green square and no red.

+ +
+
+
+
diff --git a/css/css-toggle/toggle-visibility-z-ordering-002.tentative.html b/css/css-toggle/toggle-visibility-z-ordering-002.tentative.html new file mode 100644 index 00000000000000..cc1ecb2a9cf7ba --- /dev/null +++ b/css/css-toggle/toggle-visibility-z-ordering-002.tentative.html @@ -0,0 +1,44 @@ + + +CSS Toggles: toggle-visibility + + + + + + + + +

Test passes if there is a filled green square and no red.

+ +
+
+
+
diff --git a/css/css-toggle/toggle-visibility.tentative.html b/css/css-toggle/toggle-visibility.tentative.html new file mode 100644 index 00000000000000..0a720fd454bd8c --- /dev/null +++ b/css/css-toggle/toggle-visibility.tentative.html @@ -0,0 +1,267 @@ + + +CSS Toggles: toggle-visibility + + + + + + + + + + +
+