(*.)font.family = times
h1.font.family = helvetica
The order of the two is irrelevant –
the more specific statements will override the more general ones.
–
Håkon Lie
Media Queries Selectors
speech.*.weight = 35db
speech.em.weight = 40db
Presentation decisions based on the user’s environment;
e.g. the size of the screen or the current date.
–
Håkon Lie
AGE > 3d
? background.color = pale_yellow
: background.color = white
HTML documents should also be influenced
by the relevance of each document for each individual user.
–
Håkon Lie
RELEVANCE > 80
? h1.font.size *= 1.5
Relative Units
/* h1.font.size *= 1.5 */h1{font-size: 1.5em;}
Presented @WWW Conference 1995
by Håkon Lie & Bert Bos
Ended up in political discussions about the author-reader balance.
–
Bert Bos
fast-forward 25 years…
The Modern Web
Applications
More Powerful & Complex
Web for all. Web on everything.
–
World Wide Web Consortium, 1989
It’s True…
“CSS is for documents”
“CSSThe Entire Web
is for documents”
The fact we can control a paper page
is really a limitation of that medium.
–
John Allsopp, 2000
The Web isUser-Centered
The Web isUser-Controlled
We Write
The Script & Stage Directions
But
Every Performance is Unique
Do I want to create work in which everyone feels the same, or everyone feels differently? …Something in which there is room for the audience to move around, imagine, and make associations.
–
Anne Bogart
It takes craft to set up the circumstances that are simple and yet contain the ambiguities and the incongruity of human experience.
–
Anne Bogart
CSS is forHINTS & SUGGESTIONS
Design for The Unknown
Sizes, Interfaces, Preferences, Content, &c…
There are too many variables to consider.
The point of CSS is to make it so you don’t have to worry about them all.
Define some constraints.
Let the language work out the details.
–
Keith J Grant
CSS is Resilient…
A Progressive Enhancement
WWW parsers should ignore tags which they do not understand, and ignore attributes which they do not understand of tags which they do understand.