Hacker News new | ask | show | jobs
by matthoiland 1748 days ago
Interesting way to think – we use additive color (RGB) on web so why not additive styling?

But in practice while creating interfaces, we're making broad brush strokes, then accommodating exceptions, like :last-child.

Also curious about how browsers prioritize the render stages – does every style get applied sequentially (hence cascading), or do pseudo selectors get applied later during the paint?

2 comments

> Interesting way to think – we use additive color (RGB) on web so why not additive styling?

Sounds confused. I'm not sure what "additive styling" means, but I'm sure it doesn't mean the same thing as "additive color". "Kids like jelly beans, so why not lima beans?"

The reason we use additive color on the web is that it reflects the display technology, which is a bunch of independent light emitters. The web has nothing to do with it, except that the web is viewed on computers.

Style calculations are typically done before rendering, but as far as I know, there's nothing in the spec that dictates you needing to do anything specific other than comply with the output outlined.