mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 13:18:45 +02:00
Automatic update from web-platform-tests [css-grid] Migrate grid-element-bad-cast-addchild.html to WPT This CL migrates grid-element-bad-cast.html and its -expected.txt from fast/css-grid-layout to external/wpt/css/css-grid with WPT styles, adding links to the relevant specs, and test description. Additionally, this test is renamed to grid-item-script-001[-ref].html to be align with existing tests. Bug: 1063749, 767015 Change-Id: Ieea0ba3fb0f712652420276c0bc5967140614b93 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2143185 Reviewed-by: Manuel Rego <rego@igalia.com> Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com> Cr-Commit-Position: refs/heads/master@{#758805} -- wpt-commits: 218afb07a0946aa94592f901586d90915a812e62 wpt-pr: 22912
13 lines
No EOL
558 B
HTML
13 lines
No EOL
558 B
HTML
<!DOCTYPE html>
|
|
<title>CSS Grid Layout Test: Insert script as grid item</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-item">
|
|
<link rel="stylesheet" href="/css/support/grid.css"/>
|
|
<link rel="match" href="../reference/grid-item-script-001-ref.html">
|
|
<meta name="assert" content="This test ensures that inserting a script element as grid item doesn't crash.">
|
|
<div class="grid">
|
|
<script>
|
|
var grid = document.getElementsByClassName("grid")[0];
|
|
grid.offsetTop;
|
|
grid.innerHTML = "Test passes if it doesn't crash.";
|
|
</script>
|
|
</div> |