Le 18 févr. 2014 à 10:06, Freelance Traveller <edi...@freelancetraveller.com> a 
écrit :

> The issue here is that even though the spec isn't necessarily clearly
> defined, most browsers make a reasonable attempt at supporting
> display:run-in.  Firefox doesn't. Neither do older versions of IE, nor
> very older versions of webkit-based browsers or Opera.

You may want to reconsider this.

Both Chrome and WebKit (nightly) have removed support for display: run-in

webkit:
https://bugs.webkit.org/show_bug.cgi?id=127874
Chromium:
https://codereview.chromium.org/53373003

And there are so many inconsistencies between browsers with this property 
(you'll need to do a search on www-style and check the Gecko bug linked below). 
In fact the CSS WG has removed it entirely, from the CSS 2.1 spec. It will 
eventually make a come back in a new CSS3 spec.

Ok, the case you outline is pretty basic though…

http://www.w3.org/TR/CSS21/visuren.html#propdef-display

Gecko bug report:
https://bugzilla.mozilla.org/show_bug.cgi?id=2056

– – –
To answer another part of your question, one way to style an element based on 
browser capability is using @supports () {}

https://developer.mozilla.org/en-US/docs/Web/CSS/@supports
http://dev.w3.org/csswg/css-conditional/

e.g @supports not (display: run-in) {
dl { background: lime; }
dt { background: red; }
}


Philippe
--
Philippe Wittenbergh
http://l-c-n.com




______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to