layout/reftests/position-dynamic-changes/handleprop.js

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 // Add the correct border/margin/padding style
     2 if (window.location.search.length > 0) {
     3   var params = window.location.search.substr(1).split("_");
     4   if (params[0] == "border") {
     5     params[0] = "border-width";
     6   }
     7   document.write("<style>");
     8   document.write((params[1] == "parent") ? "#parent" : "#child");
     9   document.write("{ " + params[0] + ": 1px 2px 3px 4px; }</style>");
    10 }

mercurial