Assertion: coordinate's position | /r/HasProperty | // assign coordinates
Facets:
Source sentences:
text: let elem = document.getElementById("coords-show-mark"); function createMessageUnder(elem, html) { // create message element let message = document.createElement('div'); // better to use a css class for the style here message.style.cssText = "position:fixed; color: red"; // assign coordinates, don't forget "px"! let coords = elem.getBoundingClientRect(); message.style.left = coords.left