#21440 closed defect (bug) (fixed)
Twenty Twelve: verify IE7, IE8, and IE9 support
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | lancewillett, drewstrojny, bronson@…, japh@… |
Description
As the title suggests.
Probably just a few layout tweaks needed.
Attachments (9)
Change History (31)
comment:1
SergeyBiryukov — 10 months ago
comment:2
SergeyBiryukov — 10 months ago
- Milestone changed from Awaiting Review to 3.5
21440.matchMedia.patch is an attempt to fix the JS error due to a missing window.matchMedia() method. An alternative would be to add something like matchMedia.js.
SergeyBiryukov — 10 months ago
SergeyBiryukov — 10 months ago
comment:3
SergeyBiryukov — 10 months ago
The layout in IE 7 and IE 8 is almost the same (width is shifted to 100% as described in #20198), the only difference is that main menu is broken in IE 7 (21440.ie7.png).
It's probably the media queries that are causing this.
An easy way out could be adding another script to the <!--[if lt IE 9]> conditional, like respond.js.
21440.image-unit-test.diff doesn't help with IE8 styling, but makes the IE8 hack address IE8 only. Fixes the 3rd Image Test in Theme Unit Test for all browsers.
Needs testing in IE8!
comment:6
in reply to:
↑ 5
SergeyBiryukov — 10 months ago
Replying to obenland:
but makes the IE8 hack address IE8 only.
Per @iandstewart, avoiding targeting just IE8 was intentional for Twenty Eleven (ticket:18775:11).
comment:7
lancewillett — 10 months ago
- Summary changed from Twenty Twelve: Add IE8 support to Twenty Twelve: verify IE7, IE8, and IE9 support
comment:8
lancewillett — 10 months ago
Talking it over with drewstrojny: For IE7 we could just show mobile view, it doesn't need to have media query support.
comment:10
sennza — 10 months ago
- Cc bronson@… added
comment:11
follow-up:
↓ 12
sennza — 10 months ago
As the widths and floats are declared in a media query IE7 and IE8 didn't haven't the correct layouts. Normally on clients sites I would address this with a JavaScript polyfill however I figured it would be better to address this with classes for Internet Explorer similar to how Twenty Eleven does and I added some IE7 and IE8 CSS conditionals to fix the layout.
I'm open to any suggestions of a better way to do this though :)
comment:12
in reply to:
↑ 11
philiparthurmoore — 10 months ago
Replying to sennza:
As the widths and floats are declared in a media query IE7 and IE8 didn't haven't the correct layouts. Normally on clients sites I would address this with a JavaScript polyfill however I figured it would be better to address this with classes for Internet Explorer similar to how Twenty Eleven does and I added some IE7 and IE8 CSS conditionals to fix the layout.
I'm open to any suggestions of a better way to do this though :)
Argh. I didn't realize you uploaded a patch for this before submitting #21489. Very sorry about that.
philiparthurmoore — 10 months ago
philiparthurmoore — 10 months ago
Two solutions seemed to be proposed here: 1) class-based adjustments (see @sennza's patch) and 2) media queries for IE7/IE8 (see latest two patches). My preference is for media queries here but would love to here other thoughts on this.
SergeyBiryukov — 10 months ago
With 21440.patch, the layout looks proper in both IE 7 and IE 8 (the menu is still broken in IE 7 though, see 21440.ie7.png).
21440.2.patch adds body background color as well (and fixes tabs vs. spaces).
comment:15
follow-ups:
↓ 16
↓ 19
lancewillett — 9 months ago
From chellycat in #21486
Removing width: auto from images, which was causing images resized in the editor to appear full width. The "width: auto" is an IE8 specific fix and should be moved to IE8-specific styles.
See patch on that ticket, would require adding the html element class switch to add .ie8 hooks.
comment:16
in reply to:
↑ 15
obenland — 9 months ago
Replying to lancewillett:
From chellycat in #21486
Removing width: auto from images, which was causing images resized in the editor to appear full width. The "width: auto" is an IE8 specific fix and should be moved to IE8-specific styles.
See patch on that ticket, would require adding the html element class switch to add .ie8 hooks.
21440.image-unit-test.diff doesn't. Would be more of a hack though.
comment:17
lancewillett — 9 months ago
In [21475]:
comment:18
lancewillett — 9 months ago
- Owner set to lancewillett
- Resolution set to fixed
- Status changed from new to closed
In [21482]:
comment:19
in reply to:
↑ 15
obenland — 9 months ago
- Keywords needs-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
Replying to lancewillett:
From chellycat in #21486
Removing width: auto from images, which was causing images resized in the editor to appear full width. The "width: auto" is an IE8 specific fix and should be moved to IE8-specific styles.
Not addressed yet. With the conditional .ie class in place it's a piece of cake.
comment:20
obenland — 9 months ago
- Keywords has-patch added
21440.image-width.diff Also makes Image Test, page 3, in Theme Unit Test valid
comment:21
lancewillett — 9 months ago
- Resolution set to fixed
- Status changed from reopened to closed
In [21516]:
comment:22
Japh — 9 months ago
- Cc japh@… added
@lancewillett, shouldn't there be some props for @sennza there too? I see his patch there and remember discussion about it at the Dev Hack Day after WCSF.


Related: #20198, #20190