commit 9806c96b44a88027d8ae6c57dccaeec629948bb1
parent 0f0e77a2d358f9939d46fcce8b2a39d31fe8f2f6
Author: Rune Lillesveen <futhark@chromium.org>
Date: Fri, 31 Oct 2025 09:04:43 +0000
Bug 1997208 [wpt PR 55755] - Let 'all' CSS shorthand reset 'interactivity', a=testonly
Automatic update from web-platform-tests
Let 'all' CSS shorthand reset 'interactivity'
The interactivity property was special cased for avoiding resets to void
the effect of HTML inert attributes. Now that [inert] is making
interactivity:inert !important, make the all shorthand affect
interactivity like most other properties.
Bug: 445696957
Change-Id: I767f8acf0d882690e1022f730bb92f6f2192236d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7080806
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1537785}
--
wpt-commits: c151fafabf11167fd3d05abdb2d40b9cb6fe5242
wpt-pr: 55755
Diffstat:
2 files changed, 17 insertions(+), 22 deletions(-)
diff --git a/testing/web-platform/tests/css/css-ui/interactivity-inert-all.html b/testing/web-platform/tests/css/css-ui/interactivity-inert-all.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<title>CSS UI Test: The 'all' shorthand includes 'interactivity'</title>
+<link rel="help" href="https://drafts.csswg.org/css-ui-4/#inertness">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+ #inert {
+ interactivity: inert;
+ all: initial;
+ }
+</style>
+<div id="inert"></div>
+<script>
+ test(() => {
+ assert_equals(getComputedStyle(inert).interactivity, "auto");
+ }, "The 'all' shorthand should set 'interactivity'");
+</script>
diff --git a/testing/web-platform/tests/css/css-ui/interactivity-inert-all.tentative.html b/testing/web-platform/tests/css/css-ui/interactivity-inert-all.tentative.html
@@ -1,22 +0,0 @@
-<!DOCTYPE html>
-<title>CSS UI Test: The 'all' shorthand does not include 'interactivity'</title>
-<link rel="help" href="https://drafts.csswg.org/css-ui-4/#inertness">
-<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/12049">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<style>
- #inert {
- interactivity: inert;
- }
- #child {
- all: initial;
- }
-</style>
-<div id="inert">
- <span id="child"></span>
-</div>
-<script>
- test(() => {
- assert_equals(getComputedStyle(child).interactivity, "inert");
- }, "The 'all' shorthand should not set 'interactivity'");
-</script>