recover getMarkupPos in style-context.js