s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
StyleSelector
chevron_left Classes
class
StyleSelector

Constructors

functionsStyleSelector

Fields

crop_dinAdjacentSiblingcrop_dinAnyOfcrop_dinAsStringcrop_dinBlockcrop_dinDecendantOfcrop_dinElementcrop_dinFlagscrop_dinGeneralSiblingcrop_dinHascrop_dinImmediateParentcrop_dinNotcrop_dinNthChildcrop_dinParentcrop_dinSelfScorecrop_dinUniversalSelector

Properties

data_objectClassesdata_objectIddata_objectScore

Methods

functionsFinalizefunctionsTestfunctionsTestBroadphasefunctionsTestParent
StyleSelector
A CSS selector like "Panel.button.red:hover .text"
class Sandbox.UI .
sealedSandbox.Engine

build Constructors 1

StyleSelector ()

crop_din Fields 15

AdjacentSibling
bool
For + combinator
AnyOf
StyleSelector[]
AsString
string
Block
StyleBlock
DecendantOf
StyleSelector[]
Element
string
Flags
PseudoClass
GeneralSibling
bool
For ~ combinator
Has
StyleSelector[]
ImmediateParent
bool
Not
StyleSelector
NthChild
Func`2
Parent
StyleSelector
Descendant combinator A B Child combinator A > B Adjacent sibling combinator A + B General sibling combinator A ~B
SelfScore
int
UniversalSelector
bool
True if this has a universal selector (*)

data_object Properties 3

Classes
String[]
Id
string
The Id selector - minus the # https://developer.mozilla.org/en-US/docs/Web/CSS/ID_selectors
Score
int

functions Methods 4

Finalize (block)
Test (target, forceFlag)
bool
Test whether target passes our selector test. We use forceFlag to do alternate tests for flags like ::before and ::after. It's basically added to the target's pseudo class list for the test.
TestBroadphase (target)
bool
TestParent (target, recusive)
bool
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter