toolkit/devtools/server/tests/mochitest/inspector-styles-data.html

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 <html>
michael@0 2 <script>
michael@0 3 window.onload = () => {
michael@0 4 window.opener.postMessage('ready', '*')
michael@0 5 }
michael@0 6 </script>
michael@0 7 <style>
michael@0 8 .inheritable-rule {
michael@0 9 font-size: 15px;
michael@0 10 }
michael@0 11 .uninheritable-rule {
michael@0 12 background-color: #f06;
michael@0 13 }
michael@0 14 @media screen {
michael@0 15 #mediaqueried {
michael@0 16 background-color: #f06;
michael@0 17 }
michael@0 18 }
michael@0 19 #svgcontent rect {
michael@0 20 fill: rgb(1,2,3);
michael@0 21 }
michael@0 22 </style>
michael@0 23 <link type="text/css" rel="stylesheet" href="inspector-styles-data.css"></link>
michael@0 24 <body>
michael@0 25 <h1>Style Actor Tests</h1>
michael@0 26 <!-- Inheritance checks -->
michael@0 27 <div id="inheritable-rule-uninheritable-style" class="inheritable-rule" style="background-color: purple">
michael@0 28 <div id="inheritable-rule-inheritable-style" class="inheritable-rule" style="color: blue">
michael@0 29 <div id="uninheritable-rule-uninheritable-style" class="uninheritable-rule" style="background-color: green">
michael@0 30 <div id="uninheritable-rule-inheritable-style" class="uninheritable-rule" style="color: red">
michael@0 31 <div id="test-node">
michael@0 32 Here is the test node.
michael@0 33 </div>
michael@0 34 </div>
michael@0 35 </div>
michael@0 36 </div>
michael@0 37 </div>
michael@0 38
michael@0 39 <!-- Computed checks -->
michael@0 40 <div id="computed-parent" class="external-rule inheritable-rule uninheritable-rule" style="color: red;">
michael@0 41 <div id="computed-test-node" class="external-rule">
michael@0 42 Here is the test node.
michael@0 43 </div>
michael@0 44 </div>
michael@0 45
michael@0 46 <!-- Matched checks -->
michael@0 47 <div id="matched-parent" class="external-rule inheritable-rule uninheritable-rule" style="color: red;">
michael@0 48 <div id="matched-test-node" style="font-size: 10px" class="external-rule">
michael@0 49 Here is the test node.
michael@0 50 </div>
michael@0 51 </div>
michael@0 52
michael@0 53 <div id="mediaqueried">
michael@0 54 Screen mediaqueried.
michael@0 55 </div>
michael@0 56
michael@0 57 <div id="svgcontent">
michael@0 58 <svg><rect></rect></svg>
michael@0 59 </div>
michael@0 60
michael@0 61 </body>
michael@0 62 </html>

mercurial