1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-single-item-1a.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<!-- Testcase for how we compute the baseline of a horizontal flex container 1.10 + with one flex item. This is the main-axis baseline. The spec says this 1.11 + about this case: 1.12 + ...if the flex container has at least one flex item, and its 1.13 + first flex item has a baseline parallel to the flex 1.14 + container's main axis, the flex container's main-axis 1.15 + baseline is that baseline. 1.16 +--> 1.17 +<html> 1.18 +<head> 1.19 + <title>CSS Test: Testing the baseline of a horizontal flex container with one flex item</title> 1.20 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 1.21 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-baselines"> 1.22 + <link rel="match" href="flexbox-baseline-single-item-1-ref.html"> 1.23 + <meta charset="utf-8"> 1.24 + <style> 1.25 + .flexContainer { 1.26 + display: inline-flex; 1.27 + height: 16px; 1.28 + width: 16px; 1.29 + background: purple; 1.30 + border: 0px dotted black; 1.31 + /* (Elements that want a border will set their border-width.) */ 1.32 + } 1.33 + </style> 1.34 +</head> 1.35 +<body> 1.36 + A 1.37 + <div class="flexContainer">a</div> 1.38 + <div class="flexContainer" style="padding-bottom: 20px">a</div> 1.39 + <div class="flexContainer" style="padding: 10px">a</div> 1.40 + <div class="flexContainer" style="border-width: 3px">a</div> 1.41 + <div class="flexContainer" style="border-bottom-width: 4px">a</div> 1.42 +</body> 1.43 +</html>