So you see that many code examples do something like
@media all and (max-width:640px) {
div {
background-color:red;
}
}
Now afaik, the keywords "all" and "screen" and some others are intended to select the type of device to which this refers, and the line should only contain logical output.
Since "everything" is applicable to each device, it can be assumed that its always 1 and (1 & x) are always equal to x, so "everything and" should not have any meaning.
I tried
@media (max-width:640px) {
div {
background-color:red;
}
}
and at least my browsers agree. What else should I know?
source
share