[wp-trac] [WordPress Trac] #26396: Implement a generic clearfix
WordPress Trac
noreply at wordpress.org
Tue Jan 5 13:35:14 UTC 2016
#26396: Implement a generic clearfix
----------------------------+-----------------------
Reporter: helen | Owner: afercia
Type: enhancement | Status: assigned
Priority: low | Milestone: 4.5
Component: Administration | Version: 4.4
Severity: minor | Resolution:
Keywords: has-patch | Focuses: ui
----------------------------+-----------------------
Changes (by afercia):
* keywords: needs-patch => has-patch
Comment:
OK so in order to keep the clearfix class separate from other classes and
at the same time be as clean as possible and preserve back-compat I'd
propose:
- for modern browsers, use `.nav-tab-wrapper:not(.wp-clearfix):after`
- for IE 8, no need to be 100% clean so I'd propose to always establish a
new block formatting context
See refreshed patch.
Open to suggestions and improvements. Can also be refined later. For now,
I'd propose to commit what we have and move on since this is blocking
other tickets (see for example #28864).
Will keep this ticket open for further patches to replace the old clearfix
and all the br.clear and div.clear. Patches welcome :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26396#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list