summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-flexbox/percentage-padding-002.html
blob: 9eaaff013ef26f557f5f883fea76b81b6031769f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<title>This test checks that percentage paddings do not lead to flex items with negative sizes.</title>
<link rel="author" title="Sergio Villar Senin" href="mailto:svillar@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-box-3/#padding-physical" title="Percentages line">
<link rel="match" href="percentage-padding-002-ref.html">
<style>
div {
    width: 50px;
    height: 50px;
}
span {
    display: inline-flex;
    border: 5px solid black;
}
</style>
<p>Test passes if there is a white square inside a 10x30 white box.</p>
<div>
    <span>
	    <span style="padding: 100%;"></span>
    </span>
<div>