Bug 11543
| Summary: | Positioning of floats when before collapsing margins | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ian 'Hixie' Hickson <ian> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, mitz, rniwa, robert, simon.fraser, zalan |
| Priority: | P2 | ||
| Version: | 420+ | ||
| Hardware: | PC | ||
| OS: | OS X 10.4 | ||
| URL: | http://www.hixie.ch/tests/adhoc/css/box/block/margin-collapse/067.html | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=15105 | ||
Ian 'Hixie' Hickson
This test case renders incorrectly:
http://www.hixie.ch/tests/adhoc/css/box/block/margin-collapse/067.html
The float is in between two collapsing margins, so it should get a self-collapsing anonymous parent block and be aligned with the top border edge of that block. That block is between collapsing margins (obviously). The top border edge of that block is defined to be the same as the top border edge of the parent block (since the block's top margin collapses with the parent block's). The parent block's top border edge is defined to be what it would be if that block had a non-zero top border edge.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
mitz
See also bug 15062.
mitz
(In reply to comment #1)
> See also bug 15062.
Don't. See also bug 15105 instead.
Robert Hogan
Looks like this hasn't really moved on from: http://lists.w3.org/Archives/Public/www-style/2007Sep/0048.html
Everyone is broken per the spec, and it doesn't look as if the spec has changed.
Robert Hogan
Didn't mean to mark invalid!
Ahmad Saleem
All browsers match each other in the attached test case and show "red" (just contrary to expected result) and "green" square (red on top and green below). Since all browsers (Chrome Canary 106, Firefox Nightly 104 and Safari 15.6) match other, we can mark this as "RESOLVED CONFIGURATION CHANGED" or "RESOLVED INVALID"? Thanks!