[webkit-dev] -webkit-inline-box and visible descendants
Dominic Cooney
dominicc at chromium.org
Tue Oct 18 07:09:18 PDT 2011
Hi webkittens,
Is there a spec for -webkit-inline-box?
I am investigating an assertion failure I can tickle using
-webkit-inline-box. But to fix this, I first need to understand what the
intended behavior is. If I have this markup:
<!DOCTYPE html>
<style>
#a {
display: -webkit-inline-box;
visibility: collapse;
}
#b {
visibility: visible;
}
</style>
<div id="a">
<div id="b">
foo
</div>
</div>
This displays "foo"--pretty unsurprising. Same result as if #a had display:
inline-block, incidentally.
However if I wrap #b in another div, nothing is displayed. Plausible because
the new div inherits visibility: collapse from #a. But is this
intended/correct? Because it breaks the analogy with display: inline-block,
which still displays "foo."
Any advice appreciated!
Dominic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20111018/839af2d7/attachment.html>
More information about the webkit-dev
mailing list