Game Development Reference
In-Depth Information
@media all and (scan: progressive) {
h1 {
color: red;
border: 1px solid red;
padding: 20;
}
}
grid
A grid output device is one that is not a bitmap-based device. Querying the grid
attribute returns true when the output device is not bitmap-based. The only possible
values to query against are 1 and 0. The min and max modifiers are not valid in this
query.
Examples of grid-based devices include any device that uses a character grid, such
as those older calculators or even older model cell phones with fixed fonts.
// Evaluates to true on grid-based devices
@media all and (grid) {
h1 {
color: black;
border: 1px solid black;
padding: 20;
}
}
// Evaluates to true on grid-based devices
@media all and (grid: 1) {
h1 {
color: black;
border: 1px solid black;
padding: 20;
}
}
// Evaluates to true on bitmap-based devices
Search WWH ::




Custom Search