Home /Modules/html-spec/FEATURES.md

FEATURES.md

html-spec/css/css1-1996/FEATURES.md · 90 line(s) · markdown

CSS Level 1 (1996) — complete feature catalogue

Formal titleCascading Style Sheets, level 1
PublisherW3C
Published17 December 1996 (revised 11 January 1999)
AuthorsHåkon Wium Lie, Bert Bos
StatusSuperseded (by CSS 2.1 / CSS Snapshots)
Canonical referencehttps://www.w3.org/TR/REC-CSS1
Source in this archiveREC-CSS1-19961217.html — the verbatim 17 Dec 1996 Recommendation. See ../SIGNATURES.md.

CSS1 is the origin of the language: a single flat specification. Everything below is grounded in the archived REC.

Selectors

SelectorMeaning
Etype (element) selector
E Fdescendant (contextual) selector
.classclass selector
#idid selector
E:link, E:visited, E:activeanchor pseudo-classes
E:first-linepseudo-element: first formatted line
E:first-letterpseudo-element: first letter
grouping with ,one rule for several selectors

CSS1 had no child (>), sibling (+), attribute ([attr]), or universal (*) selectors — those arrive in CSS2.

At-rules

At-rulePurpose
@importpull in another style sheet

Properties (all 53)

Font

font-family, font-style, font-variant, font-weight, font-size, font (shorthand)

Color & background

color, background-color, background-image, background-repeat, background-attachment, background-position, background (shorthand)

Text

word-spacing, letter-spacing, text-decoration, vertical-align, text-transform, text-align, text-indent, line-height

Box model — margin / padding / border

margin-top, margin-right, margin-bottom, margin-left, margin (shorthand); padding-top, padding-right, padding-bottom, padding-left, padding (shorthand); border-top-width, border-right-width, border-bottom-width, border-left-width, border-width; border-color, border-style; border-top, border-right, border-bottom, border-left, border (shorthands)

Dimensions

width, height, float, clear

Classification / display

display (block | inline | list-item | none), white-space, list-style-type, list-style-image, list-style-position, list-style (shorthand)

Value types & units

CategoryValues
Keywordsauto, none, normal, inherit-like cascade (no explicit inherit keyword yet)
Lengths — relativeem, ex, px
Lengths — absolutein, cm, mm, pt, pc
Percentages%
Colorskeyword names, #rgb, #rrggbb, rgb(r,g,b), rgb(r%,g%,b%)
URLsurl(...)
Strings"..." / '...'

Core concepts introduced

What CSS1 did not have (added later)

No positioning, no float-based page layout beyond simple floats, no media types, no @media/@page, no child/sibling/attribute selectors, no z-index, no generated content, no tables model — all added in CSS2 (see ../css2.1-2011/FEATURES.md).