Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(999)

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/dynamic/abspos-video-with-floated-control-crash.html

Issue 2690183007: Calling container() on floats should only skip LayoutInline ancestors. (Closed)
Patch Set: Not so unreachable after all. container() is sometimes called on an unrooted tree. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/multicol/dynamic/abspos-video-with-floated-control-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/dynamic/abspos-video-with-floated-control-crash.html b/third_party/WebKit/LayoutTests/fast/multicol/dynamic/abspos-video-with-floated-control-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..0e380576b93fd59a60bad658cacc08782506a7bc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/dynamic/abspos-video-with-floated-control-crash.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<style>
+ #video::-webkit-media-controls { float:left; }
+</style>
+<div style="columns:3;">
+ <span id="sibling"></span>
+ <video id="video" style="position:absolute;"></video>
+</div>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script>
+test(() => {
+ document.body.offsetTop;
+ document.getElementById("sibling").style.display = "none";
+ document.body.offsetTop;
+ document.getElementById("video").style.display = "none";
+}, "No crash or assertion failure.");
+</script>

Powered by Google App Engine
This is Rietveld 408576698