Classes

This is a list of classes Raster Images in HTML specification.

The raster class

Overview

An element with the raster class is the top-most element of this microformat. If the image is standalone, this class goes on the HTML document's body element. Otherwise the image is inline and goes on a different element, probably div because everything goes on divs.

Possible Children

An element with the raster class MUST have only the following:

  1. zero or more elements containing the 'row' class.

The row class

Overview

An element with the row class represents a row in a raster image. Rows are ordered sequentially from top-to-bottom.

And thus nothing was ever allowed to use a class called 'row' ever again.

Possible Children

An element with the row class MUST have only the following:

  1. One or more elements containing the 'pixel' class.

The pixel class

Overview

An element with the 'pixel' class represents a pixel in a raster image.

The pixels are arranged in the same order as the current text direction. If the current text direction is LTR, then the pixels are also arranged left-to-right. If the current text direction is RTL, then the pixels are also arranged right-to-left. If the direction of the image differs from the current text direction, the 'dir' attribute may be used, using the normal rules of html.

An element with the pixel class must contain at least one other class of the form "color-XXXXXXXX" where each 'X' is a hexadecmial digit. The hexadeximal digits indicate the color of the pixel. So, a pixel with the class 'color-12345678' would have a color of '#12345678'.

Pixels are allowed to contain text data for accessability. The text contents SHOULD be a human-readable string indicating the color of the pixel. This is to ensure that data remains human-visible and therefore degrades gracefully.

Possible Children

An element with the 'pixel' class MUST contain only text data.