Style attribute object and lengths not handled properly #648
Labels
good first issue
Small tasks that would be good for first time contributors
reason-closed:resolved
The question was answered, the bug was fixed, or the feature was implemented
type:bug
A bug report
Hello
Bug Report
I was moving a div around the page with the mouse, then I got a weird behavior. I'm quite new with all this stuff but it looks like a bug.
Context
Marko template:
div style={position:'absolute',top:0} -- test
Rendering:
var bloc = require('./bloc');
bloc.renderSync().appendTo(document.body);
Expected Behavior
'top' property should be set to zero and the text should be displayed at the top of the page.
Actual Behavior
The value 0 for 'top' is ignored and the 'top' property is not set in the style (according to FF inspector). The text is displayed at the default position that depends on previous elements in body.
Additional Info
Your Environment
The text was updated successfully, but these errors were encountered: