fgnass / domino

Server-side DOM implementation based on Mozilla's dom.js
BSD 2-Clause "Simplified" License
768 stars 120 forks source link

The `flex` properties can not be set #119

Closed nightskylark closed 6 years ago

nightskylark commented 6 years ago

Hello. I have found a bug. The flex property keeps being undefined after the 'flex-*` properties are set. I was redirected here from the Angular Universal repository. Please see this issue to get more details: https://github.com/angular/universal/issues/935

UPD: I have found that the problem is deeper. It is impossible to set any flex property for an element. They do not appear in the style attribute of an element.

element.style.flex = '1 1 0px';
// element.style.flex is undefined
element.style.flexBase = '0px';
// element.style.flexBase is undefined
element.style.flexGrow = 1;
// element.style.flexGrow is undefined
element.style.flexShrink = 1;
// element.style.flexShrink is undefined