Skip to content

[html] Change default <sup> and <sub> styling? #1888

@domenic

Description

@domenic

HTML currently specifies the following default styles for sup and sub:

sub { vertical-align: sub; }
sup { vertical-align: super; }
sub, sup { line-height: normal; font-size: smaller; }

In an article on web typography I just read, it was pointed out that a better default styling would be

sub { font-variant-position: sub; }
sup { font-variant-position: sup; }

Is this a change we could consider making? I thought the right people to discuss this with would be the CSSWG, thus I am here.

(One thing that might kill this idea: if this only works on fonts with a sub/sup variant built in, then it seems like it wouldn't be a good default. I wasn't clear from reading the article whether that was the case; it says "That will work fine for browsers that support OpenType", but what about on non-OpenType fonts in browsers that do support OpenType?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions