mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
Automatic update from web-platform-tests [css-grid] Migrate grid-add-positioned-block-item-after-inline-item.html to WPT Migrate this test out of blink/web_tests/fast/css-grid-layout and into the WPT-specific directory, adding links to the relevant specs and a test assertion describing its purpose. Also, this migration makes the test and actual crash test as it was meant to be originally, by adding the -crash suffix to its name, and replaces the 'stack' value for grid-auto-flow, deprecated as of 5 years ago, with the 'dense' value, which should be equivalent for the purpose of exercising the engine to ensure no crash happens. Bug: 767015, 1063749 Change-Id: I16250f5c32a5bbd334509d34c49ec6da7900e00b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2149361 Reviewed-by: Manuel Rego <rego@igalia.com> Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Mario Sanchez Prada <mario@igalia.com> Cr-Commit-Position: refs/heads/master@{#759536} -- wpt-commits: f3424eda123de074a989405ce647054aae6866d5 wpt-pr: 22968
35 lines
841 B
HTML
35 lines
841 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>CSS Grid Layout Test: no crash with positioned block grid items</title>
|
|
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
|
|
<link rel="help" href="https://drafts.csswg.org/css-grid/#grid-definition">
|
|
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=273898">
|
|
<meta name="assert" content="Test that adding a positioned block grid item after an inline grid item does not crash." />
|
|
|
|
<style>
|
|
#grid {
|
|
display: grid;
|
|
grid-auto-flow: dense;
|
|
}
|
|
|
|
embed {
|
|
position: absolute;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="grid">
|
|
test
|
|
</div>
|
|
|
|
<script>
|
|
var grid = document.getElementById("grid");
|
|
grid.offsetTop;
|
|
var embed = document.createElement("embed");
|
|
embed.setAttribute("type", "image/png");
|
|
grid.appendChild(embed);
|
|
</script>
|
|
</body>
|
|
</html>
|