repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
css
/
empty-style-reattach.html
blob
2506c3a21076cefd05eb0c20a1efbe3eac56db2d
1
<!DOCTYPE
html
>
2
3
<style>
4
#empty:empty {
5
display: none;
6
}
7
</style>
8
9
<div
id
=
"empty"
></div>
10
11
<script>
12
if
(
window
.
testRunner
)
13
testRunner
.
dumpAsText
();
14
15
var
isEmpty
=
true
;
16
var
div
=
document
.
getElementById
(
"empty"
);
17
18
function
toggle
()
19
{
20
div
.
innerHTML
=
isEmpty
?
"Should be visible"
:
""
;
21
isEmpty
= !
isEmpty
;
22
div
.
offsetLeft
;
23
}
24
25
onload
=
function
() {
26
toggle
();
// not empty
27
toggle
();
// empty
28
toggle
();
// not empty
29
};
30
</script>
31