Revision dfc6293bd278f46fb6963950157a4f19b281dca4 authored by Ms2ger on 14 March 2018, 16:45:25 UTC, committed by Ms2ger on 14 March 2018, 16:45:25 UTC
1 parent e3d85ce
Raw File
flow-into-BFC-001.xht
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>CSS Test: Regions establish a new block formatting context</title>
    <link rel="author" title="Alan Stearns" href="mailto:stearns@adobe.com"/>
    <link rel="help" href="http://www.w3.org/TR/css3-regions/#properties"/>
    <link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from"/>
    <link rel="match" href="flow-into-BFC-001-ref.xht"/>
    <meta name="flags" content=""/>
    <meta name="assert" content="A region set next to a float will clear the float in a new block formatting context."/>
    <style type="text/css">
      .flow{
        flow-into: block;
      }
      .region{
        background-color: blue;
        height: 100px;
        width: 100px;
        flow-from: block;
      }
      .floatLeft{
        float: left;
        width: 100px;
        height: 100px;
        background-color: green;
      }
      .error{
        color: red;
      }
    </style>
  </head>
  <body>
    <p>Test passes if you see a blue square to the right of a green square.</p>
    <div class="floatLeft"></div>
    <div class="region">
      <div class="error">FAIL</div>
    </div>
  </body>
</html>
back to top