/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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/. */
/* constants used in the style struct data provided by ComputedStyle */
enumclass StyleColumnSpan : uint8_t {
None,
All,
};
// Define geometry box for clip-path's reference-box, background-clip, // background-origin, mask-clip, mask-origin, shape-box and transform-box. enumclass StyleGeometryBox : uint8_t {
ContentBox, // Used by everything, except transform-box.
PaddingBox, // Used by everything, except transform-box.
BorderBox,
MarginBox, // XXX Bug 1260094 comment 9. // Although margin-box is required by mask-origin and mask-clip, // we do not implement that due to lack of support in other // browsers. clip-path reference-box only.
FillBox, // Used by everything, except shape-box.
StrokeBox, // mask-clip, mask-origin and clip-path reference-box only.
ViewBox, // Used by everything, except shape-box.
NoClip, // mask-clip only.
Text, // background-clip only.
NoBox, // Depending on which kind of element this style value applied on, // the default value of a reference-box can be different. // For an HTML element, the default value of reference-box is // border-box; for an SVG element, the default value is fill-box. // Since we can not determine the default value at parsing time, // set it as NoBox so that we make a decision later. // clip-path reference-box only.
MozAlmostPadding = 127 // A magic value that we use for our "pretend that // background-clip is 'padding' when we have a solid // border" optimization. This isn't actually equal // to StyleGeometryBox::Padding because using that // causes antialiasing seams between the background // and border. // background-clip only.
};
// See nsStyleVisibility // NOTE: WritingModes.h depends on the particular values used here.
// Single-bit flag, used in combination with VerticalLR and RL to specify // the corresponding Sideways* modes. // (To avoid ambiguity, this bit must be high enough such that no other // values here accidentally use it in their binary representation.) static constexpr uint8_t kWritingModeSidewaysMask = 4;
// See nsStyleFont::mMathStyle enumclass StyleMathStyle : uint8_t { Compact = 0, Normal = 1 };
enumclass FrameBorderProperty : uint8_t { Yes, No, One, Zero };
enumclass ScrollingAttribute : uint8_t {
Yes,
No,
On,
Off,
Scroll,
Noscroll, Auto
};
// See nsStyleList enumclass ListStyle : uint8_t {
Custom = 255, // for @counter-style
None = 0,
Decimal,
Disc,
Circle,
Square,
DisclosureClosed,
DisclosureOpen,
Hebrew,
JapaneseInformal,
JapaneseFormal,
KoreanHangulFormal,
KoreanHanjaInformal,
KoreanHanjaFormal,
SimpChineseInformal,
SimpChineseFormal,
TradChineseInformal,
TradChineseFormal,
EthiopicNumeric, // These styles are handled as custom styles defined in counterstyles.css. // They are preserved here only for html attribute map.
LowerRoman = 100,
UpperRoman,
LowerAlpha,
UpperAlpha
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.