Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#37547 closed defect (bug) (wontfix)

Twenty Twelve IE stylesheet: Missing CSS

Reported by: superpoincare's profile superpoincare Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5.3
Component: Bundled Theme Keywords: has-patch
Focuses: Cc:

Description

Twenty Twelve's CSS requires this code to be consistent with the design in other browsers:

.site-header h1 {
	margin-bottom: 0;
}

This style can be added in the css file ie.css in the folder css.

This can be added after this line: https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentytwelve/css/ie.css#L70

Attachments (2)

37547.diff (376 bytes) - added by Presskopp 10 years ago.
37547.2.diff (1.1 KB) - added by Presskopp 10 years ago.

Download all attachments as: .zip

Change History (12)

#1 @Presskopp
10 years ago

Well, if you say so :) I had the time to make a patch ;) - so here it is:

Last edited 10 years ago by Presskopp (previous) (diff)

@Presskopp
10 years ago

#2 @Presskopp
10 years ago

  • Keywords has-patch added

#3 @superpoincare
10 years ago

Nice. Also, realised that there's another place to have a difference. Enqueued style will need a different query string (date?) https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentytwelve/functions.php#L155

#4 @Presskopp
10 years ago

I don't know the rules of adding the date, but I did.

@superpoincare Do you have some more information about the problem/your solution. I guess at least it will not hurt to move this ticket forward. I just did the patch, not understanding the issue.

Last edited 10 years ago by Presskopp (previous) (diff)

@Presskopp
10 years ago

#5 @SergeyBiryukov
10 years ago

Hi @superpoincare, could you add screenshots for this change and specify IE version?

#6 @superpoincare
10 years ago

Hi Sergey,

It affects IE versions below 9.

This happens because in the mobile-first part of the style.css with no media query, sets a margin.

https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentytwelve/style.css#L571

Then within media queries, it is set to zero.

https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentytwelve/style.css#L1510

The sheet for IE less than IE9, i.e., IE6-8 then forgets to set it to zero.

Attaching two screenshots. One for IE 8 and the other for Edge 13

(I don't know how to attach images here, so I am linking it to imgur, sorry!)

http://imgur.com/a/EJX4F

#7 @karmatosed
10 years ago

I'm trying to work out this issue so please allow me to ask a question that may not be relevant. If it only is around media queries, does it even fire off with IE 9? We also won't be going back as far as IE 8 for support at this point, IE 9 yes we do.

#8 @netweb
10 years ago

  • Keywords reporter-feedback added

#9 @superpoincare
10 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Yes, doesn't affect IE9 as the bug is in the conditional IE less than 9 stylesheet.

IE8 usage is low and I think Wordpress support for old browsers is that it should display well and not have errors, so current scripts and styles satisfy that. You may close this ticket.

#10 @netweb
10 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.