width/height media queries are always being evaluated with respect to the top-level frame. This is wrong.
This is the reason test 46 of Acid3 now fails.
Created attachment 19055 [details] Work in progress This patch gets us further in the media queries section. However, we fail once the viewport is dynamically resized. In order to pass we'll need to record the fact that we are "viewport-sensitive" and force a complete style recalc on every resize (ugh).
Created attachment 19262 [details] Patch for review
Comment on attachment 19262 [details] Patch for review r=me with a testcase -- text only if possible :D
Fixed in r30466-7.