On Thu, 24 Jan 2013 16:23:18 +0100, Brad Kemper <brad.kemper@gmail.com> wrote: > > On Jan 24, 2013, at 2:08 AM, Øyvind Stenhaug <oyvinds@opera.com> wrote: > >> On Thu, 24 Jan 2013 11:03:51 +0100, Øyvind Stenhaug <oyvinds@opera.com> >> wrote: >> >>> Example test: >>> >>> <!doctype html> >>> <title>UA stylesheet rule vs. author stylesheet rule with lower >>> specificity</title> >>> <style> >>> * { display: inline; } >>> head { display: block; } >> >> Uh, that should be "display: none;", of course. (Muphry's law [sic] >> strikes again? :) > > Which line? The one with the selector for 'head'? I'm confused as to > what you are trying to show. Yes, the one for 'head', otherwise the title and style would show up which would look messy. But the point is that the UA stylesheet is presumed to set "display:block" using "p" as a selector, and the specificity of "p" is higher than that of the "*" in the author stylesheet. But the author rule wins nevertheless, and the paragraphs are shown as inlines. >>> </style> >>> <p>This text</p> >>> <p>should be on one line.</p> -- Øyvind Stenhaug Opera Software ASAReceived on Thursday, 24 January 2013 16:02:22 GMT
This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT