Sign in
nest-open-source
/
manifest_repos
/
chromium_src
/
1389d67935ffbffe8a70c1fa06867f6cf7ecf464
/
.
/
chromium
/
src
/
third_party
/
blink
/
web_tests
/
virtual
/
text-antialias
/
script-tests
/
font-size-zero.js
blob: 28027acd25d63ed0a31310f3f2d4a5988dc84d2e [
file
] [
log
] [
blame
]
var
s
=
document
.
createElement
(
'span'
);
s
.
style
.
fontSize
=
0
;
s
.
innerHTML
=
'Text'
;
document
.
body
.
appendChild
(
s
);
shouldBe
(
"s.getBoundingClientRect().height"
,
"0"
);
shouldBe
(
"s.getBoundingClientRect().width"
,
"0"
);
document
.
body
.
removeChild
(
s
);