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

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     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