8000 [css-fonts] CSSFontFaceRule does not seem Web compatible · Issue #825 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-fonts] CSSFontFaceRule does not seem Web compatible #825

@svgeesus

Description

@svgeesus

CSSFontFaceRule has a style property, introduced in DOM Level 2 Style.

DOM 2 Style says style property is of type CSSStyleDeclaration
https://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSFontFaceRule
https://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSStyleDeclaration

while CSS3 Fonts says style property is of type DOMString.
https://drafts.csswg.org/css-fonts/Fonts.html#om-fontface

Informal testing indicates that in browsers (tested Firefox 51, Chrome 57, Edge 14) the style property is an object, per Dom 2 Style. It isn't a DOMString and it is not clear how Web compatible it would be to change the type of the property.

Quick test http://codepen.io/svgeesus/pen/ZBZbbv

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

      0