[csswg-drafts] [css-fonts] CSSFontFaceRule does not seem Web compatible

svgeesus has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-fonts] CSSFontFaceRule  does not seem Web compatible ==
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

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/825 using your GitHub 
account

Received on Wednesday, 21 December 2016 21:49:02 UTC