Skip to content

Commit

Permalink
Bug 1629728 [wpt PR 22912] - [css-grid] Migrate grid-element-bad-cast…
Browse files Browse the repository at this point in the history
…-addchild.html to WPT, a=testonly

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 <[email protected]>
Commit-Queue: Gyuyoung Kim <[email protected]>
Cr-Commit-Position: refs/heads/master@{#758805}

--

wpt-commits: 218afb07a0946aa94592f901586d90915a812e62
wpt-pr: 22912
  • Loading branch information
Gyuyoung authored and moz-wptsync-bot committed Apr 21, 2020
1 parent c5dfa80 commit d29a102
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<div style="background: grey;">Test passes if it doesn't crash.</div>

0 comments on commit d29a102

Please sign in to comment.