Commit 702a7858 authored by Oriol Brufau's avatar Oriol Brufau Committed by Commit Bot

[css-sizing] Migrate available-height-for-content.html to WPT

This CL migrates fast/replaced/available-height-for-content.html to
external/wpt/css/css-sizing/available-height-for-replaced-content.html.

Change-Id: Ife10bdaf02857ff5b4e4142e6354c7d002671c3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2320270
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Reviewed-by: default avatarManuel Rego <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#791872}
parent 35d10dd9
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test: available height for replaced content</title>
<link rel="help" href="https://drafts.csswg.org/css-sizing/#available">
<link rel="help" href="https://crrev.com/acc04ddbdc31a7c5bda78f88719df43367630fed">
<meta name="assert" content="This test ensures that the available height for replaced content is calculated correctly when the parent has border, padding or min-height."/>
<style>
#wrapper {
width: 200px;
min-height: 1px;
height: 20px;
border: 1px solid green;
padding: 50px;
}
img {
margin: 0;
padding: 0;
border: 0;
width: 100%;
height: 100%;
background: silver;
}
</style>
<div id="log"></div>
<div id="wrapper">
<img src="" data-expected-height="20">
</div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<script>
checkLayout('img');
</script>
<!DOCTYPE html>
<script src="../../resources/check-layout.js"></script>
<style>
div { width: 200px; min-height: 1px; height: 20px; border: 1px solid green; padding: 50px;}
img { margin:0; padding:0; border:0; width:100%; height: 100%; background: silver}
</style>
<p>Ensure we calculate the available height for replaced content correctly.</p>
<div>
<img src="" data-expected-height=20>
</div>
<script>
checkLayout('img');
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment