commit 7fa9b2a851f818bc569055a3539a8daec1fdf3ad parent 96f623df840eae7cb7ce2c30a54a6cfeaa19751d Author: Andy Paicu <andypaicu@chromium.org> Date: Tue, 14 Oct 2025 22:23:21 +0000 Bug 1992766 [wpt PR 55252] - [PEPC] Fix content-visibility and -webkit-text-security, a=testonly Automatic update from web-platform-tests [PEPC] Fix content-visibility and -webkit-text-security content-visibility was incorrectly evaluated initially as fine for the permission element. It should not be allowed on the permission element. -webkit-text-security can be used to obfuscate the text by setting it on a parent. This CL manually sets the value to 'none' on the text. Fixed: 445232193 Fixed: 442860479 Change-Id: I75e303d569fe2c69586ad6e9cc53d13fb7e1e8ac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7003553 Commit-Queue: Andy Paicu <andypaicu@chromium.org> Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/main@{#1526101} -- wpt-commits: 26afc6407ed0ecc63717717dbb25ee7e0822f57d wpt-pr: 55252 Diffstat:
3 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/html/semantics/permission-element/invalid-css-properties.tentative.html b/testing/web-platform/tests/html/semantics/permission-element/invalid-css-properties.tentative.html @@ -18,6 +18,7 @@ transform: rotate(10); border: 0px; cursor: none; + content-visibility: hidden; } </style> @@ -34,6 +35,7 @@ assert_equals(getComputedStyle(el_with_negatives).paddingLeft, "0px", "padding-left"); assert_equals(getComputedStyle(el_with_negatives).transform, "none", "transform"); assert_equals(getComputedStyle(el_with_negatives).cursor, "pointer", "cursor"); + assert_equals(getComputedStyle(el_with_negatives).contentVisibility, "visible", "content-visibility"); }, "None of the listed properties should be applied"); </script> </body> \ No newline at end of file diff --git a/testing/web-platform/tests/html/semantics/permission-element/webkit-text-security-on-parent-ref.html b/testing/web-platform/tests/html/semantics/permission-element/webkit-text-security-on-parent-ref.html @@ -0,0 +1,5 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Reference for Permission Element with -webkit-text-security on parent</title> + +<div id="container"><permission id="p" type="camera"></permission></div> diff --git a/testing/web-platform/tests/html/semantics/permission-element/webkit-text-security-on-parent.tentative.html b/testing/web-platform/tests/html/semantics/permission-element/webkit-text-security-on-parent.tentative.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Permission Element with -webkit-text-security on parent</title> +<link rel="help" href="https://github.com/WICG/PEPC"> +<link rel="match" href="webkit-text-security-on-parent-ref.html"> +<style> + #container { + -webkit-text-security: disc; + } +</style> + +<div id="container"><permission id="p" type="camera"></permission></div>