We’re designing unknown content
with unknown collaborators
on an infinite and unknowable canvas,
across operating systems, interfaces,
writing-modes, & languages…
–
me
The fact we can control a paper page
is really a limitation of that medium.
–
John Allsopp, 2000
There are too many variables to consider.
–
Keith J Grant
The point of CSS is to make it so
you don’t have to worry about them all.
–
Keith J Grant
Define some constraints.
Let the language work out the details.
–
Keith J Grant
Provide hints that the browser may or may not use.
–
Håkon Lie
What’s a Cascade??
every css property
on every html element
must have exactly one value
Cascadefilters out Inheritancefills in
An ordered list (cascade) of style sheets …
can be referenced from the same document.
–
Håkon Lie
The user/browser specifies initial preferences
and hands the remaining influence over to the document.
–
Håkon Lie
Cascade Origins
🖥 User Agent (Browser)
👥 User (Preferences)
🎨 Author (Site)
/* browser styles */body{margin: 8px;}/* every designer */body{margin: 0;}
🎨 Author (Site)
👥 User (Preferences)
🖥 User Agent (Browser)
{reversed}
If conflicts arise the user should have the last word,
but one should also allow the author to attach style hints.