2002-11-17 18:37:56 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2002-11-17 18:37:56 +03:00
|
|
|
|
2006-03-25 08:47:31 +03:00
|
|
|
/* atom list for CSS pseudo-elements */
|
|
|
|
|
2002-11-17 18:37:56 +03:00
|
|
|
/*
|
|
|
|
* This file contains the list of nsIAtoms and their values for CSS
|
|
|
|
* pseudo-elements. It is designed to be used as inline input to
|
2003-07-04 05:33:10 +04:00
|
|
|
* nsCSSPseudoElements.cpp *only* through the magic of C preprocessing. All
|
2009-08-11 02:52:29 +04:00
|
|
|
* entries must be enclosed either in the macro CSS_PSEUDO_ELEMENT;
|
|
|
|
* these macros will have cruel and unusual things done to them. The
|
|
|
|
* entries should be kept in some sort of logical order.
|
2003-07-04 05:33:10 +04:00
|
|
|
*
|
2009-08-11 02:52:29 +04:00
|
|
|
* Code including this file MUST define CSS_PSEUDO_ELEMENT, which takes
|
|
|
|
* three parameters:
|
|
|
|
* name_ : The C++ identifier used for the atom (which will be a member
|
|
|
|
* of nsCSSPseudoElements)
|
|
|
|
* value_ : The pseudo-element as a string, with single-colon syntax,
|
|
|
|
* used as the string value of the atom.
|
|
|
|
* flags_ : A bitfield containing flags defined in nsCSSPseudoElements.h
|
2002-11-17 18:37:56 +03:00
|
|
|
*/
|
|
|
|
|
2003-04-02 08:51:07 +04:00
|
|
|
// OUTPUT_CLASS=nsCSSPseudoElements
|
|
|
|
// MACRO_NAME=CSS_PSEUDO_ELEMENT
|
|
|
|
|
2009-08-11 02:52:29 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(after, ":after", CSS_PSEUDO_ELEMENT_IS_CSS2)
|
|
|
|
CSS_PSEUDO_ELEMENT(before, ":before", CSS_PSEUDO_ELEMENT_IS_CSS2)
|
2003-07-04 05:33:10 +04:00
|
|
|
|
2016-01-28 02:11:00 +03:00
|
|
|
CSS_PSEUDO_ELEMENT(backdrop, ":backdrop", 0)
|
|
|
|
|
2009-08-11 02:52:29 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(firstLetter, ":first-letter",
|
|
|
|
CSS_PSEUDO_ELEMENT_IS_CSS2 |
|
|
|
|
CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS)
|
|
|
|
CSS_PSEUDO_ELEMENT(firstLine, ":first-line",
|
|
|
|
CSS_PSEUDO_ELEMENT_IS_CSS2 |
|
|
|
|
CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS)
|
2003-07-04 05:33:10 +04:00
|
|
|
|
2009-08-11 02:52:29 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(mozSelection, ":-moz-selection",
|
|
|
|
CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS)
|
2002-11-17 18:37:56 +03:00
|
|
|
|
2009-12-11 10:37:40 +03:00
|
|
|
// XXXbz should we really allow random content to style these? Maybe
|
|
|
|
// use our flags to prevent that?
|
2009-08-11 02:52:29 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(mozFocusInner, ":-moz-focus-inner", 0)
|
|
|
|
CSS_PSEUDO_ELEMENT(mozFocusOuter, ":-moz-focus-outer", 0)
|
2002-11-17 18:37:56 +03:00
|
|
|
|
2009-12-11 10:37:40 +03:00
|
|
|
// XXXbz should we really allow random content to style these? Maybe
|
|
|
|
// use our flags to prevent that?
|
2009-08-11 02:52:29 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(mozListBullet, ":-moz-list-bullet", 0)
|
|
|
|
CSS_PSEUDO_ELEMENT(mozListNumber, ":-moz-list-number", 0)
|
2002-11-17 18:37:56 +03:00
|
|
|
|
2009-12-11 10:37:40 +03:00
|
|
|
CSS_PSEUDO_ELEMENT(mozMathAnonymous, ":-moz-math-anonymous", 0)
|
|
|
|
|
2011-05-06 13:52:05 +04:00
|
|
|
// HTML5 Forms pseudo elements
|
2013-11-28 10:46:38 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(mozNumberWrapper, ":-moz-number-wrapper",
|
2013-11-28 11:03:16 +04:00
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
|
2014-10-23 20:57:28 +04:00
|
|
|
CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY)
|
2013-11-28 10:46:38 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(mozNumberText, ":-moz-number-text",
|
2013-11-28 11:03:16 +04:00
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
|
2014-10-23 20:57:28 +04:00
|
|
|
CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY)
|
2013-11-28 10:46:38 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(mozNumberSpinBox, ":-moz-number-spin-box",
|
2013-11-28 11:03:16 +04:00
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
|
2014-10-23 20:57:28 +04:00
|
|
|
CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY)
|
2013-11-28 10:46:38 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(mozNumberSpinUp, ":-moz-number-spin-up",
|
2013-11-28 11:03:16 +04:00
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
|
2014-10-23 20:57:28 +04:00
|
|
|
CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY)
|
2013-11-28 10:46:38 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(mozNumberSpinDown, ":-moz-number-spin-down",
|
2013-11-28 11:03:16 +04:00
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
|
2014-10-23 20:57:28 +04:00
|
|
|
CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY)
|
2013-11-28 10:46:38 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(mozProgressBar, ":-moz-progress-bar",
|
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
|
|
|
CSS_PSEUDO_ELEMENT(mozRangeTrack, ":-moz-range-track",
|
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
|
|
|
CSS_PSEUDO_ELEMENT(mozRangeProgress, ":-moz-range-progress",
|
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
|
|
|
CSS_PSEUDO_ELEMENT(mozRangeThumb, ":-moz-range-thumb",
|
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
|
|
|
CSS_PSEUDO_ELEMENT(mozMeterBar, ":-moz-meter-bar",
|
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
|
|
|
CSS_PSEUDO_ELEMENT(mozPlaceholder, ":-moz-placeholder",
|
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
2013-07-10 02:25:27 +04:00
|
|
|
CSS_PSEUDO_ELEMENT(mozColorSwatch, ":-moz-color-swatch",
|
2013-11-28 10:46:38 +04:00
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_STYLE_ATTRIBUTE |
|
|
|
|
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|