summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-grid/bug1356820.html
blob: 2f2f360143fff71075101ca6d73886c15eb8077f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><script>try {
(function() {
	var target = 'blur';
	if ( target === '' || target === '{{1}}' ) { return; }
	var needle = 'mz_str', reText = '.?';
	if ( needle !== '' && needle !== '{{2}}' ) {
		reText = /^\/.+\/$/.test(needle)
			? needle.slice(1,-1)
			: needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
	}
	var re = new RegExp(reText);
	var chain = target.split('.');
	var owner = window, prop;
	for (;;) {
		prop = chain.shift();
		if ( chain.length === 0 ) { break; }
		owner = owner[prop];
		if ( owner instanceof Object === false ) { return; }
	}
	var desc = Object.getOwnPropertyDescriptor(owner, prop);
	if ( desc && desc.get !== undefined ) { return; }
	var magic = String.fromCharCode(Date.now() % 26 + 97) +
				Math.floor(Math.random() * 982451653 + 982451653).toString(36);
	var value = owner[prop];
	var validate = function() {
		var e = document.currentScript;
		if ( e instanceof HTMLScriptElement && e.src === '' && re.test(e.textContent) ) {
			throw new ReferenceError(magic);
		}
	};
	Object.defineProperty(owner, prop, {
		get: function() {
			validate();
			return value;
		},
		set: function(a) {
			validate();
			value = a;
		}
	});
	var oe = window.onerror;
	window.onerror = function(msg) {
		if ( typeof msg === 'string' && msg.indexOf(magic) !== -1 ) {
			return true;
		}
		if ( oe instanceof Function ) {
			return oe.apply(this, arguments);
		}
	}.bind();
})();
} catch ( e ) { }
(function() {
  var c = document.currentScript, p = c && c.parentNode;
  if ( p ) { p.removeChild(c); }
})();</script></head><body><div style="display: grid; width: 5em;">
   <div style="word-wrap: break-word; min-width: 0;">
     first item with a longlonglongword
   </div>
   <div>
     second item
   </div>
</div>
<div style="display: grid; width: 5em;">
   <div style="min-width: 0;">
     first item with a longlonglongword
   </div>
   <div>
     second item
   </div>
</div>
<div style="display: grid; width: 5em;">
   <div style="word-wrap: break-word; min-height: 0; writing-mode:vertical-lr">
     first item with a longlonglongword
   </div>
   <div>
     second item
   </div>
</div>
</body></html>