Skip to content

The headless browser for AI agents and web scraping

Add float clearfix parity repro

SGavrl66e8d94cbcfb
diff --git a/render-repros/bootstrap-float-clearfix.html b/render-repros/bootstrap-float-clearfix.html
new file mode 100644
index 00000000..90bef658
--- /dev/null
+++ b/render-repros/bootstrap-float-clearfix.html
@@ -0,0 +1,26 @@
+<!doctype html>
+<meta charset="utf-8">
+<style>
+ * { box-sizing: border-box }
+ html, body { margin: 0 }
+ .row { width: 100%; min-height: 720px; background: #212326 }
+ .row::before, .row::after { content: " "; display: table }
+ .row::after { clear: both }
+ .column { float: left; width: 100%; min-height: 1px; height: 100vh; background: #087f5b }
+ .centered {
+ position: relative;
+ min-height: 900px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #1971c2;
+ }
+ .card { width: 400px; height: 500px; background: #f8f9fa }
+</style>
+<section class="row">
+ <div class="column">
+ <div class="centered">
+ <div class="card"></div>
+ </div>
+ </div>
+</section>
diff --git a/render-repros/checks.json b/render-repros/checks.json
index 3b3e2bf5..d9add3d9 100644
--- a/render-repros/checks.json
+++ b/render-repros/checks.json
@@ -231,6 +231,11 @@
{"name": "first block keeps its declared geometry", "color": "#087f5b", "x": 0, "y": 0, "width": 900, "height": 20},
{"name": "formatting whitespace does not interrupt sibling margin collapse", "color": "#1971c2", "x": 0, "y": 60, "width": 900, "height": 20}
],
+ "bootstrap-float-clearfix": [
+ {"name": "percentage float keeps the block containing width", "color": "#1971c2", "x": 0, "y": 0, "width": 900, "height": 900},
+ {"name": "viewport-height float continues below its child", "color": "#087f5b", "x": 0, "y": 900, "width": 900, "height": 100},
+ {"name": "clearfix keeps centered float content in the first band", "color": "#f8f9fa", "x": 250, "y": 200, "width": 400, "height": 500}
+ ],
"replaced-grid-order": [
{"name": "order-modified description occupies the first grid cell", "color": "#e8590c", "x": 0, "y": 0, "width": 300, "height": 200},
{"name": "media wrapper shares the first row", "color": "#1971c2", "x": 300, "y": 0, "width": 300, "height": 300},