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 thatmedium.
–
John Allsopp, 2000
There are too many variables toconsider.
–
Keith J Grant
The point of CSS is to make it so
you don’t have to worry about themall.
–
Keith J Grant
Define some constraints.
Let the language work out thedetails.
–
Keith J Grant
Provide hints that the browser may or may notuse.
–
Håkon Lie
What’s a Cascade??
every css property
on every html element
must have exactly onevalue
Cascadefilters out Inheritancefillsin
An ordered list (cascade) of style sheets …
can be referenced from the samedocument.
–
Håkon Lie
The user/browser specifies initial preferences
and hands the remaining influence over to thedocument.
–
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)
If conflicts arise the user should have the last word,
but one should also allow the author to attach stylehints.