mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
13f0d4632f
nsCSSFrameConstructor::ConstructNonScrollableBlock() has logic to determine whether to create a block formatting context for a block frame. I refactor the function to make it reusable by nsCSSFrameConstructor::ConstructDetailsFrame(). Also, make NS_NewBlockFrame() accept two arguments as other frame factory functions so that it could be pointed by BlockFrameCreationFunc. NS_NewBlockFormattingContext is changed accordingly. The construction for a scrollable DetailsFrame will be further revised in Part 3. MozReview-Commit-ID: 8TwG9YMyGva --HG-- extra : rebase_source : fffdd974df81a809a607491d2534aa8dd2d13ab1
32 lines
585 B
HTML
32 lines
585 B
HTML
<!DOCTYPE html>
|
|
<!-- Any copyright is dedicated to the Public Domain.
|
|
- http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
|
|
<html>
|
|
<style>
|
|
body {
|
|
width: 400px;
|
|
}
|
|
div#float {
|
|
float: left;
|
|
width: 200px;
|
|
height: 200px;
|
|
background-color: lightgreen;
|
|
}
|
|
div#details {
|
|
float: left;
|
|
background-color: orange;
|
|
}
|
|
div#summary {
|
|
background-color: green;
|
|
}
|
|
</style>
|
|
<body>
|
|
<div id="float"></div>
|
|
<div id="details">
|
|
<div id="summary">Summary</div>
|
|
<!-- No content due to closed details -->
|
|
</div>
|
|
</body>
|
|
</html>
|