Sat, 03 Jan 2015 20:18:00 +0100
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 | <?xml version="1.0" encoding="UTF-8"?> |
michael@0 | 2 | <!-- |
michael@0 | 3 | Any copyright is dedicated to the Public Domain. |
michael@0 | 4 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 5 | --> |
michael@0 | 6 | <!-- Testcase with margin/border/padding on flex items. (NOTE: This renders |
michael@0 | 7 | the same as the "-2a" variant, which lacks padding, because we've |
michael@0 | 8 | just replaced some of the "-2a" variant's content-box area with |
michael@0 | 9 | padding-box area in this test.) --> |
michael@0 | 10 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 11 | <head> |
michael@0 | 12 | <title>CSS Test: Testing margins, borders, and padding on flex items in a horizontal flex container</title> |
michael@0 | 13 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> |
michael@0 | 14 | <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#layout-algorithm"/> |
michael@0 | 15 | <link rel="match" href="flexbox-mbp-horiz-2-ref.xhtml"/> |
michael@0 | 16 | <style> |
michael@0 | 17 | div { height: 100px; border: 0; } |
michael@0 | 18 | div.flexbox { |
michael@0 | 19 | width: 200px; |
michael@0 | 20 | font-size: 10px; |
michael@0 | 21 | display: flex; |
michael@0 | 22 | } |
michael@0 | 23 | div.a { |
michael@0 | 24 | flex: 1 0 9px; |
michael@0 | 25 | background: lightgreen; |
michael@0 | 26 | margin-left: 1px; |
michael@0 | 27 | margin-right: 3px; |
michael@0 | 28 | border-style: dotted; |
michael@0 | 29 | border-left-width: 2px; |
michael@0 | 30 | border-right-width: 4px; |
michael@0 | 31 | padding-left: 5px; |
michael@0 | 32 | padding-right: 6px; |
michael@0 | 33 | } |
michael@0 | 34 | div.b { |
michael@0 | 35 | flex: 2 0 1px; |
michael@0 | 36 | background: yellow; |
michael@0 | 37 | margin-left: 2px; |
michael@0 | 38 | margin-right: 4px; |
michael@0 | 39 | border-style: dashed; |
michael@0 | 40 | border-left-width: 7px; |
michael@0 | 41 | border-right-width: 3px; |
michael@0 | 42 | padding-left: 1px; |
michael@0 | 43 | padding-right: 2px; |
michael@0 | 44 | } |
michael@0 | 45 | div.c { |
michael@0 | 46 | flex: 3 0 40px; |
michael@0 | 47 | background: orange; |
michael@0 | 48 | } |
michael@0 | 49 | div.flexNone { |
michael@0 | 50 | flex: none; |
michael@0 | 51 | background: pink; |
michael@0 | 52 | } |
michael@0 | 53 | div.flexBasis { |
michael@0 | 54 | flex: 0 0 20px; |
michael@0 | 55 | background: gray; |
michael@0 | 56 | } |
michael@0 | 57 | div.spacer { |
michael@0 | 58 | display: inline-block; |
michael@0 | 59 | width: 15px; |
michael@0 | 60 | height: 15px; |
michael@0 | 61 | background: purple; |
michael@0 | 62 | } |
michael@0 | 63 | </style> |
michael@0 | 64 | </head> |
michael@0 | 65 | <body> |
michael@0 | 66 | <div class="flexbox"><div class="a"></div><div class="b"/></div> |
michael@0 | 67 | <div class="flexbox"><div class="a"/><div class="c"/></div> |
michael@0 | 68 | <div class="flexbox"><div class="a"/> |
michael@0 | 69 | <div class="flexNone"><div class="spacer"/></div> |
michael@0 | 70 | </div> |
michael@0 | 71 | <div class="flexbox"><div class="b"/><div class="c"/></div> |
michael@0 | 72 | <div class="flexbox"><div class="b"/> |
michael@0 | 73 | <div class="flexNone"><div class="spacer"/><div class="spacer"/></div> |
michael@0 | 74 | </div> |
michael@0 | 75 | |
michael@0 | 76 | <div class="flexbox"> |
michael@0 | 77 | <div class="a"/><div class="b"/><div class="flexBasis"/><div class="c"/> |
michael@0 | 78 | </div> |
michael@0 | 79 | </body> |
michael@0 | 80 | </html> |
michael@0 | 81 |