Skip to content

Commit f342f5a

Browse files
committed
Bug 1858764 [wpt PR 42506] - Create crash test for adding :dir rule in iframe, a=testonly
Automatic update from web-platform-tests Create crash test for adding :dir rule in iframe Bug: 1486351, 1487390 Change-Id: I824dbb485ff8c127ca91941b4d53f86841be6ac8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4930842 Reviewed-by: David Baron <dbaronchromium.org> Commit-Queue: Rune Lillesveen <futharkchromium.org> Cr-Commit-Position: refs/heads/main{#1208917} -- wpt-commits: 44434085559af190462d8d4d8c0a8015797c4c82 wpt-pr: 42506 UltraBlame original commit: cf09a758298c231799cc8c65a8e2d45b41811558
1 parent 0923439 commit f342f5a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<title>CSSOM Test: Chrome crash inserting :dir rule in iframe</title>
3+
<link rel="help" href="https://crbug.com/1486351">
4+
<p>PASS if no crash.</p>
5+
<iframe srcdoc='<!DOCTYPE html>
6+
<style id="sheet"> </style>
7+
<div id="host"></div>
8+
<script>
9+
let root = host.attachShadow({mode:"open"});
10+
root.innerHTML = "<slot></slot>";
11+
host.offsetTop;
12+
host.innerHTML = "<span>Green</span>";
13+
sheet.sheet.insertRule("html:dir(ltr) { color: green; }");
14+
getComputedStyle(host).color;
15+
</script>
16+
'>
17+
</iframe>

0 commit comments

Comments
 (0)