- From: Boris Zbarsky <bzbarsky@mit.edu>
- Date: Tue, 09 Dec 2014 10:47:51 -0500
- To: www-style@w3.org
Consider this testcase: <!DOCTYPE html> <iframe srcdoc="<div style='width: 100%'>" style="width: 200px"> </iframe> <script> onload = function() { alert( getComputedStyle(frames[0].document.querySelector("div")).width ); } </script> What should be alerted? Per spec, this should be "the value [of width] being the resolved value computed for obj using the style rules associated with doc", where "doc" is the parent document. But for "width" the resolved value is the used value. How exactly is this supposed to be calculated "using the style rules associated with doc"? -Boris
Received on Tuesday, 9 December 2014 15:48:20 UTC