-
Notifications
You must be signed in to change notification settings - Fork 746
Closed
Labels
Closed Accepted by CSSWG ResolutionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-fonts-3css-fonts-4Current WorkCurrent Work
Description
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
Labels
Closed Accepted by CSSWG ResolutionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-fonts-3css-fonts-4Current WorkCurrent Work