Skip to content

Commit

Permalink
Make webkit-line-clamp-026.html fail consistently.
Browse files Browse the repository at this point in the history
Make sure that layout has happened before modifying style.
This is what the test wants to test.

Bug: 965137
Change-Id: I2efcae8113b693fe7d591e6eff3df3937ed4df43
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1623089
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#661966}
  • Loading branch information
mstensho authored and chromium-wpt-export-bot committed May 21, 2019
1 parent fabbe20 commit e9b2f87
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions css/css-overflow/webkit-line-clamp-026.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>CSS Overflow: Dynamically changing -webkit-box-orient when -webkit-line-clamp applies</title>
<link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au">
Expand All @@ -24,8 +23,6 @@
Line 5</div>
<p>Following content.</p>
<script>
window.onload = function() {
document.body.offsetTop;
document.querySelector(".clamp").style.webkitBoxOrient = "horizontal";
document.documentElement.className = "";
};
</script>

0 comments on commit e9b2f87

Please sign in to comment.