Commit b61f1533 authored by Julie Jeongeun Kim's avatar Julie Jeongeun Kim Committed by Commit Bot

[css-flexbox] Move inline-flex-crash2.html to WPT

This CL migrates this test out of
third_party/blink/web_tests/css3/flexbox and into the WPT-specific
directory, adding links to the relevant specs and a test assertion
describing its purpose and renames inline-flex-editing-crash.html.

Bug: 1063749
Change-Id: I1a939dbf754630836798938dd35728324048f16f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2152332Reviewed-by: default avatarDavid Grogan <dgrogan@chromium.org>
Reviewed-by: default avatarRobert Ma <robertma@chromium.org>
Reviewed-by: default avatarChristian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Julie Kim <jkim@igalia.com>
Cr-Commit-Position: refs/heads/master@{#759946}
parent 2780c65f
<!DOCTYPE html>
<style>#el0::first-letter, #el0:first-child { height: 100px;}</style>
This test passes if it doesn't crash.
<div id='container' contentEditable><a><img><div id="el0" style="display: inline-flex"><pre>AAAAA</pre></div></a></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.getSelection().selectAllChildren(document.getElementById('container'));
document.execCommand('FormatBlock', false, '<h5>');
</script>
<!DOCTYPE html>
<title>CSS Flexbox: inline-flex layout with editing operations</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-containers">
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=77772">
<link rel="help" href="https://crbug.com/118662">
<meta name="assert" content="This test ensures that inline-flex layout does not crash with editing operations.">
<style>#el0::first-letter, #el0:first-child { height: 100px; }</style>
<div id='container' contentEditable>
<a>
<img>
<div id="el0" style="display: inline-flex">
<pre>AAAAA</pre>
</div>
</a>
</div>
<script>
window.getSelection().selectAllChildren(document.getElementById('container'));
document.execCommand('FormatBlock', false, '<h5>');
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment