Visit Mozilla.org

Talk:Mozilla CSS Extensions

From MDC

Can someone clarify, verify the -moz-box-sizing values with regard to the provided definition. IMO, the content-box definition and padding-box definition should be permutated, switched. IMO,

padding-box should be defined as: The width and height properties specify the size of the element including the padding.

and

content-box should be defined as: The width and height properties specify the size of the element. The padding, border and margin are added outside of this size.

Right now, this is not the case in this document nor at http://www.xulplanet.com/references/elemref/ref_StyleProperties.html#prop_-moz-box-sizing

Hmm... maybe I can just add this page to the Category:NeedsTechnicalReview .. [[User:GT|[[User:GT|DBaron 15:14:40, 2005-10-20 (PDT)]]~]] 13:11, 19 October 2005 (PDT)


Many of these are values, not properties. this should be more clearly differentiated here, imo... and what about pseudo-classes? --Biesi 16:29, 26 September 2005 (PDT)

Is there anywhere I could get the full list of properties, values, and pseudo-classes? -- dria 19:35, 26 September 2005 (PDT)
http://lxr.mozilla.org/seamonkey/source/layout/style/nsCSSPseudoClassList.h has pseudo-classes; http://lxr.mozilla.org/seamonkey/source/layout/style/nsCSSPseudoElementList.h has pseudo-elements. (not all of these are mozilla extensions...) http://lxr.mozilla.org/seamonkey/source/layout/style/nsCSSPropList.h#260 has properties. (the ones with BACKENDONLY aren't really supported) --Biesi 04:56, 27 September 2005 (PDT)
Are those really complete? I just scanned through searching for "-moz" and there appear to be a lot more properties listed in this article than in that code. Am I missing something? -- dria 06:54, 27 September 2005 (PDT)
I believe so... note that I don't know of a list of valid -moz- values, which I believe many of the extensions listed in the article to be. I'd cc dbaron here, if wikis supported that ;) --Biesi 08:56, 27 September 2005 (PDT)
The -moz-* values are in http://lxr.mozilla.org/seamonkey/source/layout/style/nsCSSKeywordList.h and you need to combine that with http://lxr.mozilla.org/seamonkey/source/layout/style/nsCSSProps.cpp (and in some cases http://lxr.mozilla.org/seamonkey/source/layout/style/nsCSSParser.cpp ) to figure out what they're values for. -DBaron 15:14:40, 2005-10-20 (PDT)

I've removed -moz-evil: because someone managed to collect it using some source scanning mechanism w/o properly verifying that it was a css anything (it's approximately a url and is used to talk about dom event listeners. it does not relate to css) --timeless 11:26, 27 September 2005 (PDT)

[edit] Iterate extension list?

Is there anyway to iterate the extension list? IOW, is there anyway to get those extension names from browser itself--possibly with JavaScript or so? (It would be very helpful to write test suite or demo for the extensions ) -- Rrjanbiah 22:49, 16 May 2007 (PDT)

The list which can be generated using the following code should be either complete or complete sans fully internal properties which only exist to help the style engine do its stuff (and sans properties not named using a Moz prefix (usually for compat with other browsers if there's a really good reason to be compatible with them for a non-standard property -- I'm aware of only one, and it won't even be shipped for several months):
var s = "", a = document.body.style;
for (var i in a)
{
  if (/^Moz/.test(i))
    s+=i+" ";
}
print(s);
Hope this helps.--Waldo 20:24, 17 May 2007 (PDT)