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 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
michael@0 | 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>CSS Test: Box Sizing - Padding-Box with min/max width/height</title> |
michael@0 | 5 | <link rel="author" title="Scott Johnson" href="mailto:sjohnson@mozilla.com" /> |
michael@0 | 6 | <link rel="help" href="http://www.w3.org/TR/css3-ui/#box-sizing" /> |
michael@0 | 7 | <meta name="assert" content="box-sizing: padding-box should make the element's (calc) width be the distance from the left padding edge to the right padding edge and the height be the distance from the top padding edge to the bottom padding edge."/> |
michael@0 | 8 | <style type="text/css"><![CDATA[ |
michael@0 | 9 | .container { |
michael@0 | 10 | min-width: 500px; |
michael@0 | 11 | max-width: 700px; |
michael@0 | 12 | min-height: 70px; |
michael@0 | 13 | max-height: 90px; |
michael@0 | 14 | border: 2px solid black; |
michael@0 | 15 | position: absolute; |
michael@0 | 16 | left: 25px; |
michael@0 | 17 | top: 25px; |
michael@0 | 18 | background-color: red; |
michael@0 | 19 | } |
michael@0 | 20 | |
michael@0 | 21 | .box-sized { |
michael@0 | 22 | box-sizing: padding-box; |
michael@0 | 23 | min-width: 250px; |
michael@0 | 24 | max-width: 350px; |
michael@0 | 25 | min-height: 70px; |
michael@0 | 26 | max-height: 90px; |
michael@0 | 27 | z-index: 1; |
michael@0 | 28 | float: left; |
michael@0 | 29 | padding: 5px 5px; |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | #one { |
michael@0 | 33 | background-color: green; |
michael@0 | 34 | } |
michael@0 | 35 | |
michael@0 | 36 | #two { |
michael@0 | 37 | background-color: blue; |
michael@0 | 38 | } |
michael@0 | 39 | ]]></style> |
michael@0 | 40 | </head> |
michael@0 | 41 | <body> |
michael@0 | 42 | The two divs should be side-by-side, not one on top of another. No red should be visible. |
michael@0 | 43 | <br /> |
michael@0 | 44 | <div class="container"> |
michael@0 | 45 | <div class="box-sized" id="one">LEFT HALF</div> |
michael@0 | 46 | <div class="box-sized" id="two">RIGHT HALF</div> |
michael@0 | 47 | </div> |
michael@0 | 48 | </body> |
michael@0 | 49 | </html> |