Skip to content

Aligning text style properties with CSS? #2971

@plehegar

Description

@plehegar

Section

https://www.w3.org/TR/epub-anno-10/#body

Describe the problem

This applies more to the EPUB annotations spec than the EPUB Annotations Vocabulary.

The specification defines a few text style properties, with associated keywords: color, highlight, textDirection.

The values for those properties are similar to a subset of properties and values defined in CSS: color, text-decoration, direction.

It seems to me that it would be beneficial for the long run to align the name of the properties (s/highlight/text-decoration/, s/textDirection/direction/) and also claim equivalence of values between the CSS properties and the EPUB Annotations, so that we don't introduce new values in EPUB Annotations that don't exist in CSS.

Describe the fix or new feature you propose

Align the name of the properties and point to CSS for the definition of each value used in those properties, eg 'pink' should point to https://drafts.csswg.org/css-color/#named-colors .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    In review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions