[Webkit-unassigned] [Bug 7933] Empty inline elements are invisible even if they have a padding

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Mar 24 03:01:33 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=7933





------- Comment #4 from sd at theparallax.com  2006-03-24 03:01 PDT -------
Thanks for the comment! Is there any way to avoid this kind of behavior in
current Webkit-based browsers? I'm replacing text with images all the time to
create accessible web apps.

I was testing this in different browsers and it seems that Gecko, Opera and
iCab all render the inline flow (although Opera doesn't expand the parent
elements).
Only IE/Mac renders identically to Webkit; IE/Win doesn't render the inline
flow too - but it *does* expand the parent elements as if they contained
something.

Is there really no specified way of doing this?

Along the way i ran into a related interesting behavior in Webkit that i can't
yet really reduce any further. In my projects i'm replacing text using the "Off
Left"-technique: I position the element that i want to remove absolutely and
give it a large negative left value (left: -2000px) which visually behaves like
"display: none". That way the element is still spoken by today's screen readers
and users still have keyboard access to the hidden elements (think access keys
for the different sections of a page, for example).

Webkit behaves as expected when i do this; it doesn't render any inline
containers of the removed elements - as if they where empty or as if their
contents had been removed via "display: none".

But: If i do this for a sequence of inline elements and insert some character
into one of the container elements (next to the removed content) all the
following elements in the sequence *are* magically rendered.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list