braillespecs / braille-css

Braille CSS specification
http://braillespecs.github.io/braille-css
2 stars 1 forks source link

Support for rendering marks in the left margin #39

Open bertfrees opened 8 years ago

bertfrees commented 8 years ago

.. as described in requirement 4.8:106.

OBFL supports this through margin-region and marker-indicator: see http://joeha480.github.io/obfl/obfl-specification.html#L1296.

Several approaches can be taken in CSS. One idea is based on ::line-marker pseudo-element. Another idea is to support position: page as described in [CSS3POS]. But for now I will do it with a special -obfl-marker property and a special -obfl-marker-indicator() value for content that map one-to-one to the OBFL elements marker and marker-indicator. margin-region will map to the new page-margin areas @left and @right.

The resulting style sheet will look something like this:

@page {
  margin-left: 2;
  @left {
    content: -obfl-marker-indicator(pagenum, '!');
  }
}
pagenum {
  display: none;
  -obfl-marker-set: pagenum;
}

To do:

See also: