[1] [DFN[CSSOM]] ([DFN[CSS Object Model]]) は、 [[Webブラウザー]]などで利用可能な [[CSS]] [[スタイル・シート]]やそれに基づく[[レンダリング]]に関する [[DOM]] [[API]] です。 * 表記 [21] 「[[CSSOM]]」は初期には「[[DOM CSS]]」などと呼ばれたり、「[[CSS OM]]」と2語に綴られたりいろいろな表記がなされました。 * 歴史 ** Early work on CSSOM at W3C CSSWG [15] [CITE@en[DOM 2 Style/CSS Issues List]] [14] [CITE@en[CSS Editing Object Model]] [12] [CITE[CSS Editing and Selectors Object Models]] ** 選択子 API [13] [CITE['''['''whatwg''']''' getElementsByClassName()]] ([CODE[2006-02-06 11:06:49 +09:00]] 版) ([[名無しさん]] [WEAK[2006-02-06 03:57:41 +00:00]]) > Probably doesn't matter which group does it since it'd end up being me doing the work either way... At the time where I made that comment, the CSSWG was planning on creating a CSSOM spec to replace the DOM2 CSS spec. That plan still vaguely exists, though it isn't a high priority for the CSS group. > I can certainly see myself speccing a getElementsBySelector() API as part of Selectors 2. But either way, the spec for gEBS is simple; it returns the same type as getElementsByTagName(), it is accessible from Document and Element nodes and selects a subset of the descendants of that node, it takes a single argument (a string representing a selector), its first version doesn't support namespaces, and it raises an exception SYNTAX_ERR if the string can't be successfully parsed by the UA. [10] [CITE[ACTION-87: Selectors API from Anne van Kesteren on 2006-02-25 (public-webapi@w3.org from February 2006)]] ([[名無しさん]] [WEAK[2006-02-26 02:46:14 +00:00]]) > During the F2F I got an action assigned to me to draft something up for getElementsBySelector(). [17] 以後の動きについては[[選択子API]]の項を参照。 ** [CODE(DOMi)@en[CSSValue]] [11] [CITE[Re: [SVGMobile12] SVGT12-207: Conformance to uDOM from Ian Hickson on 2006-01-03 (www-svg@w3.org from January 2006)]] ([[名無しさん]] [WEAK[2006-02-16 03:07:36 +00:00]]) > There are plans for making big improvements to the CSSOM [INS[...]] [2] [CITE[[CSSOM] CSSValue and related interfaces (message from the CSS WG) from Bert Bos on 2003-10-30 (www-style@w3.org from October 2003)]] > One of the specifications that the CSS WG is chartered to write is a new version of the Document Object Model for CSS, or CSSOM for short. We don't have a Working Draft yet, but the following is is an official statement by the CSS. It represents the current consensus in the WG: >> The following DOM2 Style features are considered to be problematic and are therefore classified as obsolete. Implementors are strongly urged not to implement them. Replacements will be provided at some future point. >>> The UnknownRule interface (unknown rules should be dropped by the parser and thus never reach the DOM) >>> The getPropertyCSSValue method, CSSValue interface, all interfaces inheriting from CSSValue, and the RGBColor, Rect, and Counter interfaces (the CSSValue interface is thought to be too awkward for frequent use) [20] [[Ian Hickson]] の提案 ** CSSOM Draft 2006- by W3C CSSWG [1] [CITE[Cascading Style Sheets Object Model (CSSOM)]] ([[名無しさん]] [WEAK[2006-12-09 08:07:12 +00:00]]) [4] [CITE[csswg/cssom/Overview.src.html - diff - 1.24]] ([CODE[2007-02-04 18:33:01 +09:00]] 版) > 8EC0 -> Gecko > 09E8A -> Opera ちょwwwwwww 象形かYOwwwwwwwwwwwwwwwww ** CSSOM View [7] [CITE[CSSOM: clientHeight, offsetHeight and scrollHeight - Anne’s Weblog]] ([CODE[2007-08-04 03:57:35 +09:00]] 版) [18] [CITE@en-US[CSSOM View Module]] ([CODE[2007-12-01 07:31:03 +09:00]] 版) ([[名無しさん]]) [19] >>18 元の [[CSSOM]] Editor's Draft の Layout API の部分が独立したようです。 以後については [[CSSOM View]] の項をご覧ください。 * memo [9] [CITE[JavaScript tutorial - DOM Style Sheets]] [3] [CITE[CSS + JavaScript Tips]] ([CODE[2007-01-18 15:22:10 +09:00]] 版) ([[名無しさん]] [WEAK[2007-01-19 15:44:18 +00:00]]) [5] [CITE[404 Blog Not Found:javascript - CSSをいじくる]] ([CODE[2007-03-12 07:19:59 +09:00]] 版) > JavaScriptでDOM要素のstyle属性をいじるのは簡単ですが、これがCSSともなるとobject treeが深くて大変で、Webを見回してもほとんど参考例がありません。 日本語でおkwwwwwwwww ([[名無しさん]] [WEAK[2007-03-11 22:33:05 +00:00]]) [6] [CITE[erik’s weblog » Blog Archive » Computed vs Cascaded Style]] ([CODE[2007-07-28 11:50:01 +09:00]] 版) ([[名無しさん]] [WEAK[2007-07-28 02:59:28 +00:00]]) [16] [[Live CSSOM Viewer]] [22] [CITE[CSSOM: New Beginning — Anne’s Weblog]] ([TIME[2009-11-15 14:51:56 +09:00]] 版) [23] [CITE[IRC logs: freenode / #whatwg / 20091015]] ([TIME[2009-12-10 00:05:28 +09:00]] 版) [24] [CITE[IRC logs: freenode / #whatwg / 20100316]] ([TIME[2010-03-21 11:57:02 +09:00]] 版) [25] [CITE[IRC logs: freenode / #whatwg / 20100615]] ([TIME[2010-06-27 13:23:25 +09:00]] 版) [26] [CITE[IRC logs: freenode / #whatwg / 20100831]] ( ([TIME[2010-09-11 22:28:55 +09:00]] 版)) [27] [CITE[IRC logs: freenode / #whatwg / 20110113]] ( ([TIME[2011-01-20 22:41:09 +09:00]] 版))