Properties
CSS properties
If not stated otherwise these properties behave as defined in W3C specs.
direction
direction
display and visibility
displayvisibility- standard, but also supportsnonevalue that is treated asdisplay:none
floats
clearfloat
color and font
colorfontfont-familyfont-sizefont-stylefont-variantfont-variant-ligaturesfont-variant-capsfont-weightletter-spacingline-heightbaseline-shiftfont-rendering-mode:sub-pixel- default mode, glyphs may start on fractions of pixels;snap-pixel- glyphs start on pixel boundary, used in edit fields to show caret properly;
text rendering
text-decorationtext-decoration-styletext-decoration-linetext-decoration-colortext-decoration-thicknesstext-indenttext-overflowtext-shadowtext-transformwhite-spacetext-wrapword-wrapword-break
tab-size
selection
text-selection-colortext-selection-background-colortext-selection-caret-colortext-selection
dimensions
min-heightmin-widthmax-heightmax-widthheightwidthsize- in Sciter the size is shortcut property for width and height, accepts one or two length / flex values:size: 100px-width:100pxandheight:100px;size: 100px 200px-width:100pxandheight:200px;
box-sizing- standard, but also supportspadding-boxvalue.
alignments
text-alignvertical-align- standard for display:inline and display:inline-block elements, for other elements is treated ascontent-vertical-align;horizontal-align- (Sciter) alias ofcontent-horizontal-aligncontent-vertical-align- (Sciter) block vertical alignment inside this element:topmiddlebottom
content-horizontal-align- (Sciter) block horizontal alignment inside this element:start- either left or right, depending of direction;end- either right or left, depending of direction;leftcenterright
background
backgroundbackground-attachmentbackground-colorbackground-imagebackground-positionbackground-position-topbackground-position-leftbackground-position-rightbackground-position-bottombackground-repeatbackground-offsetbackground-offset-topbackground-offset-leftbackground-offset-rightbackground-offset-bottombackground-sizebackground-widthbackground-heightbackground-clipbackground-image-framebackground-blend-mode
borders
borderborder-bottomborder-bottom-colorborder-bottom-styleborder-bottom-widthborder-collapseborder-colorborder-leftborder-left-colorborder-left-styleborder-left-widthborder-rightborder-right-colorborder-right-styleborder-right-widthborder-styleborder-topborder-top-colorborder-top-styleborder-top-widthborder-widthborder-radiusborder-top-right-radiusborder-bottom-right-radiusborder-bottom-left-radiusborder-top-left-radiusborder-top-right-radius-xborder-top-right-radius-yborder-bottom-right-radius-xborder-bottom-right-radius-yborder-bottom-left-radius-xborder-bottom-left-radius-yborder-top-left-radius-xborder-top-left-radius-y
box-shadow
outlines
outline-coloroutline-widthoutline-style- accepts these values:nonesoliddotteddashedglow- (Sciter specific) draws box-shadow withblur-radius == outline-widthandspread-radius == outline-offestnwse-hatch- (Sciter specific) uses\\\\hatch brush for painting;nesw-hatch- (Sciter specific) uses////hatch brush for painting;
outline-offsetoutline
filters
filterbackdrop-filter
transform
transformtransform-origintransform-origin-xtransform-origin-y
printing
page-break-beforepage-break-afterpage-break-inside
margin
marginmargin-bottommargin-leftmargin-rightmargin-top
hit-margin- Sciter specific, non-visual margin that extends hit box of the element. Affects where E:hover will detect the element.
padding
paddingpadding-bottompadding-leftpadding-rightpadding-top
border spacing
border-spacingborder-spacing-xborder-spacing-y- standard, but in Sciterborder-spacingis applied to content of any block element. Sodiv { border-spacing:2em }will make 2em margins between div's children.
lists
list-stylelist-style-imagelist-style-positionlist-style-typelist-marker-colorlist-marker-sizelist-marker-style
overflow
overflowoverflow-xoverflow-y- standard, but also supportsscroll-indicatorvalue to show not-taking-space scrollbar, as on mobiles.
cursor
cursor
image rendering
image-rendering- the image-rendering property provides a hint about the algorithm it should use to scale images. Supports one of the following values:inheritinherit value from parentautobilinear or bicubic interpolationcrisp-edgeslinear interpolationpixelatednearest-neighbour interpolationdefaultalias of crisp-edgesoptimize-qualityalias of autooptimize-speedalias of pixelated
opacity
opacity
positioning
z-indexpositionleftrighttopbottom
transitions
transitiontransition-delaytransition-durationtransition-propertytransition-timing-function
animations
animationanimation-nameanimation-durationanimation-delayanimation-iteration-countanimation-directionanimation-timing-functionanimation-fill-modeanimation-play-state
auxiliaries
appearance- onlynonevalue is used to suppress default rendering of<input>s and<buttons>szoompointer-events
Sciter specific properties
content
content- in Sciter content can be defined for any element, not just ::after and ::before
layers
layer:auto- default value, no layer;force- creates bitmap buffer for the element, used in cases when element has complex drawing inside;disabled- disable buffering;
content-isolate:isolate- default, content of style-sets are not redifinable by user's styles;none- content of style-sets can be redifined by user's styles;
border shape
border-shape- declares elements of arbitrary shapes.Accepts SVG
path(m ... z)values that define the shape. If combined withoverflow:hiddenthen clips content of the element by that path.
clip box
clip-boxdefines area clipped when overflow:hidden is used, accepts:default- either content-box or padding-box, depends on context;content-boxpadding-boxborder-boxmargin-boxhit-margin-box
fills and strokes
fillfill-opacityfill-rulestrokestroke-widthstroke-linecapstroke-linejoinstroke-miterlimitstroke-dasharraystroke-dashoffsetstroke-opacitystop-colorstop-opacitymarkermarker-startmarker-midmarker-endThese are standard SVG properties but in Sciter they are applied to vector images of any element:
button {
background: path(m 0 0 ... z) no-repeat;
fill:red;
stroke: blue;
}
flow - layout managers
flow- see Flows and Flexes.flow-rowsflow-columns
scrolling
scroll-mannerscroll-manner-xscroll-manner-yAcceptsscroll-manner(prop1:val1[, ...propN:valN])with the following prop/value arguments:animation:true|false- on/off animated scroll;step: <length>- advance of one scroll step (click on next/previous buttons on scrollbar);page: <length>- advance of one scroll page;wheel-step: <length>- advance of one mouse wheel click;
behavior and component support
behavior:<name-of-native-behavior>see behaviors
prototypeaspect- see DOM components and aspects
foreground
foregroundforeground-attachmentforeground-imageforeground-positionforeground-position-topforeground-position-leftforeground-position-rightforeground-position-bottomforeground-repeatforeground-sizeforeground-widthforeground-heightforeground-clipforeground-image-frameforeground-image-cursorforeground-blend-modeElements in Sciter may have foreground image defined that is defined exactly as a background image but rendered on top of the content;
foreground-colorIn some cases you may highlight element by defining semitransparent
foreground-color: rgba(255,0,0,0.5). That foreground-color layer will be drawn on top of element's background and content;
role
role- string, defines role of the element, for exampletr {role : "option"}will allow selectable table rows as options in select;
image transformations
background-image-transformationforeground-image-transformation- whitespace separated list of various image transformations methodscontrast(0 ... 1.0)brightness(0 ... 1.0)gamma(0 ... 4.0)hue(0..360deg)saturation(0 ... 1.0)opacity(0 ... 1.0)flip-x()- flip image horizontally;flip-y()- flip image vertically;
scrollbar styling
vertical-scrollbarhorizontal-scrollbarThese properties accept name of styleset that defines scrollbar look and feel, see Scrollbar Styling.
overscroll-behavioroverscroll-behavior-xoverscroll-behavior-yThese properties define what happens when scrollable reaches the boundary of a scrolling area:
auto- on touch scrolling performs rollback animation, on mouse wheel scroll - no overscroll;contain- overscroll with rollback animation;none- no overscroll at all;
context menu
context-menuaccepts either :selector(...)that defines selector of menu element that will be used as a context menu, orurl(...)url of partial HTML that defines<menu>element;
style sets
style-set- see Style Sets
mapping, RTL support
mapping- accepts functionleft-to-right(part1 , ... partN )where parts are :margin- swaps left and right margins;border- swaps left and right borders;background- swaps left and right background props and image;background-image- mirrors image horizontally;background-position- swaps left and right background image position;foreground- swaps left and right foreground props and image;layout- swaps direction between ltr and rtl;alignment- changes text-align from left to right;
popup position:
popup-position:<popup-reference-point><anchor-reference-point>popup-anchor-reference-pointpopup-reference-point- these two accept named reference point values:top-lefttop-centertop-rightmiddle-leftmiddle-centermiddle-rightbottom-leftbottom-centerbottom-right
popup animation:
popup-animation:popup-animation(param:value, ...)where params are:- type : one of
blend|inflate|slide|roll- type of window appearance animation; - axis : one of
horizontal|vertical; - heading : one of
start-to-end|end-to-start; - duration : duration of the animation, e.g.
100ms;
- type : one of