[cssom] What should happen with getComputedStyle on a node in another document when used values are involved?

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