Live data from Hacker News

The Queen’s stylesheets

spiffingcss.com

1–10 of 74 posts

Re: The Queen’s stylesheets

#2
Ok, this is only tangentially related, but does anyone know why it's "background-repeat: no-repeat" instead of "none"? Or why it's "text-wrap: none" but "white-space: nowrap" or "white-space: pre-wrap"?

Re: The Queen’s stylesheets

#4
Your example is incorrect

"transparency: 1" != "opacity: 1"

We use transparency in the US. Transparency is how much light passes through an object and Opacity is how much it blocks.

so:

"transparency: 1" == "opacity: 0"

Re: The Queen’s stylesheets

#6
post #2

Ok, this is only tangentially related, but does anyone know why it's "background-repeat: no-repeat" instead of "none"? Or why it's "text-wrap: none" but "white-space: nowrap" or "white-space: pre-wrap"?

It's because you're able to define all the background styling in one line:

background: #000 url(pic.png) no-repeat;

So having background-repeat: none; would conflict with background/background-image: none;

Re: The Queen’s stylesheets

#8
post #4

Your example is incorrect "transparency: 1" != "opacity: 1" We use transparency in the US. Transparency is how much light passes through an object and Opacity is how much it blocks. so: "transparency: 1" == "opacity: 0"

Funny enough, the example is ambiguous since:

"transparency: 0.5" == "opacity: 0.5"

Post reply on HN