commit cb42bd45054bb5ebcf619d4e51b3f7033ca02061 parent cc6fe0ed5be94a97f770e375555385b6ebe3fc4b Author: Andy Paicu <andypaicu@chromium.org> Date: Fri, 31 Oct 2025 08:57:53 +0000 Bug 1997092 [wpt PR 55744] - [PEPC] Add WPT tests for comments inside the permission element, a=testonly Automatic update from web-platform-tests [PEPC] Add WPT tests for comments inside the permission element The original bug indicates that comments inside the permission element break its rendering. I've tried various examples and it does not seem to reproduced anymore. This CL just adds the tests to help prevent future similar regressions. Fixed: 450861822 Change-Id: Ibe0084991ff5414406a91da245c4c6c88a968f79 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7062451 Reviewed-by: Thomas Nguyen <tungnh@chromium.org> Auto-Submit: Andy Paicu <andypaicu@chromium.org> Commit-Queue: Andy Paicu <andypaicu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1537243} -- wpt-commits: 156bb7cbb8483f6ffd4b275a1ed0b628fd0582cc wpt-pr: 55744 Diffstat:
2 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/html/semantics/permission-element/permission-element-with-comment-ref.html b/testing/web-platform/tests/html/semantics/permission-element/permission-element-with-comment-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<link rel="help" href="https://github.com/WICG/PEPC/blob/main/explainer.md"> + +<permission type="geolocation"></permission> +<permission type="camera"></permission> +<div style="display: flex;"> + <permission type="microphone"></permission> +</div> +<permission type="geolocation"></permission> diff --git a/testing/web-platform/tests/html/semantics/permission-element/permission-element-with-comment.tentative.html b/testing/web-platform/tests/html/semantics/permission-element/permission-element-with-comment.tentative.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<link rel="help" href="https://github.com/WICG/PEPC/blob/main/explainer.md"> +<link rel="match" href="permission-element-with-comment-ref.html"> + +<permission type="geolocation"> <!-- Comment 1 --> </permission> +<permission type="camera"> <!-- C1 --> Text <!-- C2 --> </permission> +<div style="display: flex;"> + <permission type="microphone"> <!-- Comment 1 --> </permission> +</div> +<permission type="geolocation"> + <!-- Comment Before --> + <span> + <button>Click Me</button> + <textarea>Some text</textarea> + </span> + <!-- Comment After --> +</permission>