[whatwg] Alignment of empty buttons
Boris Zbarsky
bzbarsky at MIT.EDU
Fri Nov 22 19:06:56 PST 2013
On 11/22/13 9:57 PM, Boris Zbarsky wrote:
> For what it's worth, <select> didn't use to be in Gecko either, in this
> sense, until we made it so in
> https://bugzilla.mozilla.org/show_bug.cgi?id=591619
And to be clear, all that this did is add the equivalent of:
select > :not(:any(option, optgroup)) { display: none; }
optgroup > :not(option) { display: none; }
except also applying to textnodes and operating directly on used style,
not computed style (which is why it's now a replaced element per your
definition, since those two exceptions cannot in fact be expressed in CSS).
None of this is very interoperable, of course; e.g.
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2655 and
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2657 are
rendered quite differently in Gecko and WebKit/Blink. The latter seem
to have option and select being a lot more replaced-elementish than they
are in Gecko.
-Boris
More information about the whatwg
mailing list