Skip to content

Latest commit

Β 

History

History
656 lines (550 loc) Β· 45.9 KB

supported-css-features.md

File metadata and controls

656 lines (550 loc) Β· 45.9 KB

Supported CSS Features

Vivliostyle currently supports the following CSS values, selectors, at-rules, media queries, and properties:

In addition, essentially all CSS properties and values supported by the browser are available, since Vivliostyle.js lets the browser handle CSS properties that Vivliostyle.js does not handle on its own.

Values

Selectors

Not supported selectors

Not supported selectors

At-rules

See also: Properties in CSS Paged Media 3

  • Nth page selector :nth(An+B)
    • The :nth(An+B) syntax is supported but the :nth(An+B of <custom-ident>) is not yet supported.
    • Note: In multi-document publications, the :nth(1) matches the first page of each document, but the :first matches only the first page of the first document. [Issue]

See also:

See also: Properties in CSS Fonts 3

Media queries

Properties

  • bleed
    • Only effective when specified within an @page rule without page selectors
  • marks
    • Only effective when specified within an @page rule without page selectors
  • size
    • Supports all required values and proposed values A0-A10, B0-B10, C0-C10 and JIS-B0-JIS-B10. See [Pull Request]
  • crop-offset
    • Specifies distance between the edge of the trim size and the edge of the output page media size
    • Only effective when specified within an @page rule without page selectors
    • This property is not standardized yet. See [Issue]
  • page (Named Pages)

See also: At-rules in CSS Paged Media 3

See also:

  • clear
    • Supports none, inline-start, inline-end, block-start, block-end, left, right, top, bottom, both, all, same values.
    • When all is specified on a block-level box (not a page float), the block-start edge of the box gets pushed down so that the edge comes after any block-start/block-end page float of which anchors are before the box in the document order.
    • When a clear value is specified on a page float, it is placed so that it comes after any of preceding page floats.
    • same value means the same direction as one which the page float is floated to.
    • If a page float with float: snap-block would be placed at the block-start end but a clear value on it forbidden such placement, the float is instead placed at the block-end side (unless the clear value also forbidden such placement).
  • float
    • Supports block-start, block-end, inline-start, inline-end, snap-block, left, right, top, bottom and none values.
    • Supports values combining keywords. For example,
      • float: top right; float to top right corner
      • float: bottom left; float to bottom left corner
      • float: top bottom; float to top or bottom edge
      • float: top bottom left; float to top left or bottom left corner
      • float: top bottom left right; float to top left, top right, bottom left, or bottom right corner
      • float: block-start inline-start; float to block-start and inline-start corner
      • float: block-start block-end; float to block-start or block-end edge (same as 'snap-block')
      • See [Pull Request]
  • float-reference
    • Specify float-reference: page (or column/region) to enable page (or column/region) float.
  • float-min-wrap-block
    • Applies to a page float
    • A percentage value is respect to the block dimension of the float reference of the page float
    • When set to a positive length, in-flow contents are not allowed to be flown into a space next to the page float if the block extent of the space is less than the specified length. In that case, the space is kept empty and the in-flow contents are deferred to the next column.
    • This property is not standardized yet. See [Pull Request]

See also: Values - Supported color values

  • object-fit
  • object-position
  • image-resolution
    • Only <resolution> value is supported.
    • Only supported for content of img, input[type=image] and video (applied to poster images) elements and before/after pseudoelements. Other images such as background images, list images or border images are not supported.
    • The property is applied to vector images such as SVG, as well as raster images. This behavior is different from what the spec specifies.

See also: At-rules in CSS Fonts 3

  • text-autospace
    • Supported values: normal | no-autospace | [ ideograph-alpha || ideograph-numeric ] | auto
  • text-spacing-trim
    • Values: space-all | normal | space-first | trim-start | trim-both | auto
  • text-spacing
    • Values: normal | none | auto | [<autospace> || <spacing-trim>]
    • Note: This is a shorthand property that sets the text-autospace and text-spacing-trim properties. See [Pull Request ]

Note: Currently the multi-column layout works well only when specified on the root or body element. [Issue]

Note: This spec is not on a W3C standards track. Future version of Vivliostyle may drop support for this spec.

At-rules

Properties

Note: This spec proposal is not submitted to CSS Working Group yet.