layout/reftests/css-sizing/min-intrinsic-with-percents-across-elements.html
author Xianzhu Wang <wangxianzhu@chromium.org>
Tue, 05 Mar 2019 12:18:01 +0000
changeset 464575 4325ba7b38576495a78289c2a8f4dff391922e66
parent 419235 e86e1123dd47e8b3563aa09d5740d54333df8203
permissions -rw-r--r--
Bug 1529059 [wpt PR 15420] - [BlinkGenPropertyTrees] Initiailize double_sided of synthetic effect, a=testonly Automatic update from web-platform-tests [BlinkGenPropertyTrees] Initiailize double_sided of synthetic effect Previously synthetic effects always had double_sided==false, causing the layer disappear when the backface was facing forward. Bug: 928190 Change-Id: I35534b40346d5c5918bc99c00a4ca6b4e3b68796 Reviewed-on: https://chromium-review.googlesource.com/c/1475815 Reviewed-by: Philip Rogers <pdr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#632764} -- wpt-commits: a89467050deaf1dcbd9140a2f0670b1b85e518ee wpt-pr: 15420

<!DOCTYPE HTML>
<title>Tests for bug 823483</title>
<style>

body, input { font-size: 10px }
body { line-height: 1.5 }
input { padding: 0 1px; border: 1px solid maroon; font-family: monospace }

td:first-child {
   background: aqua;
   border: thin solid;
   padding: 1px 0;
}

td:nth-child(2) {
  width: 100%;
}

td:nth-child(1) > * { vertical-align: bottom }

canvas {
  background: blue
}

</style>

<table><tr>
  <td><img></td>
  <td>img, unstyled</td>
</tr></table>

<table><tr>
  <td><img style="width: 50%"></td>
  <td>img, width: 50%</td>
</tr></table>

<table><tr>
  <td><img style="max-width: 50%"></td>
  <td>img, max-width: 50%</td>
</tr></table>

<table><tr>
  <td><canvas height="10" width="10"></canvas></td>
  <td>canvas, unstyled</td>
</tr></table>

<table><tr>
  <td><canvas style="width: 50%" height="10" width="10"></canvas></td>
  <td>canvas, width: 50%</td>
</tr></table>

<table><tr>
  <td><canvas style="max-width: 50%" height="10" width="10"></canvas></td>
  <td>canvas, max-width: 50%</td>
</tr></table>

<table><tr>
  <td><iframe height="10" width="10"></iframe></td>
  <td>iframe, almost unstyled</td>
</tr></table>

<table><tr>
  <td><iframe style="width: 50%" height="10" width="10"></iframe></td>
  <td>iframe, width: 50%</td>
</tr></table>

<table><tr>
  <td><iframe style="max-width: 50%" height="10" width="10"></iframe></td>
  <td>iframe, max-width: 50%</td>
</tr></table>

<table><tr>
  <td><input type="text"></td>
  <td>input type="text", unstyled</td>
</tr></table>

<table><tr>
  <td><input type="text" style="width: 50%"></td>
  <td>input type="text", width: 50%</td>
</tr></table>

<table><tr>
  <td><input type="text" style="max-width: 50%; visibility: hidden"></td>
  <td>input type="text", max-width: 50%</td>
</tr></table>

<table><tr>
  <td><input type="button"></td>
  <td>empty input type="button", unstyled</td>
</tr></table>

<table><tr>
  <td><input type="button" style="width: 50%"></td>
  <td>empty input type="button", width: 50%</td>
</tr></table>

<table><tr>
  <td><input type="button" style="max-width: 50%"></td>
  <td>empty input type="button", max-width: 50%</td>
</tr></table>

<table><tr>
  <td><input type="button" value="Button"></td>
  <td>nonempty input type="button", unstyled</td>
</tr></table>

<table><tr>
  <td><input type="button" value="Button" style="width: 50%; visibility: hidden"></td>
  <td>nonempty input type="button", width: 50%</td>
</tr></table>

<table><tr>
  <td><input type="button" value="Button" style="max-width: 50%; visibility: hidden"></td>
  <td>nonempty input type="button", max-width: 50%</td>
</tr></table>

<script>

var images = document.getElementsByTagName("img");
for (var i = 0; i < images.length; ++i) {
  var image = images[i];
  image.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUEBAAAEBLCjf2dK8NsKrJLJp84zgUAgEAgEAoFAcGUBocYBP+pqhN4AAAAASUVORK5CYII=";
}

</script>