CSS 3.25
CSS 3.25 looks similar to regular CSS 3, but with some differences. Note that B9 is a new engine, not all classic CSS 3 features are supported.
Basic structure
This is an example of a CSS 3.25 file.
Looks like a lot? It's not that complicated. It's just about taking a few things into account and then just checking a list of properties.
Take into account
No selectors are required: You don't need to use a dot to select a class (e.g.
.myClass {}
). Since there's no ID's to differentiate with, just put the class name without anything (e.g.myClass{}
).Use specific units: Only px (which is translated to pt) for measures and HEX (#123456) for colors are supported. No RGBa, no HSL, no em, no viewport units...
Remember how the CSS box model works: We use CSS 3's standard box model, where a box has a SIZE, then a PADDING, then a BORDER and a MARGIN.
Events are not supported: As of B9 v1.2.2, events (like
:focused
,:hover
, and so on) are not supported.
Noted that? Now let's get to the styling features.
Styling
Global
Global styles that can be applied to anything
border-style
values visualised.
Layout
Use these in combination with
<div>
s to organise your layout.
Text
Use these to style your texts
On runtime, px
values get translated to pt
values by B9.
Text underline / overline / strikethrough
Non-standard, this feature doesn't exist on CSS 3.
Input and textarea
Width and height are considered "Layout" directives, but since they are only supported by
<input>
and<textarea>
(as of B9 1.2.2), they have their own category for now.
All CSS 3.25 properties
That would be it for styling! Now it's time for the fun part: scripting!
Last updated