[webkit-gtk] Please let me know how to get height, width of given css selector(Dom Element) in Webcore/Css folder
85.mukesh at gmail.com
Sun Feb 24 20:38:25 PST 2013
*A**s per the given code snippet *
<canvas id="canvas" width="100"
<div id="*container*" >
<p>No 1 A 2D Physics Engine
var domObj = $("#container div");
var width = domObj.width() / 2 ;
var height = domObj.height() / 2
As per the given above scenario, collecting the width and height of given
selector using JQuery and it’s also very simple to understand. When I am
debugging it, I came to know that JQuery, extracting the height and width
from CSS only.
Problem Statement: I want to get the height and width of given element
(Selector) directory from webcore/css/ (Expected directory in webkit). I
don’t want to use any king of JQuery to get height, width of element.
Please let me know, from which file in css director(guessing), I can get
same info as JQuery is proving.
Thanks & Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-gtk