add poc testing for dynamic get width and height from dom
add more test case for div and span