Bug 607267. Don't style imagemaps as block. r=dbaron,tbsaunde

This commit is contained in:
Boris Zbarsky 2012-07-17 12:18:53 -04:00
parent 689f87cddc
commit 051c2fee44
7 changed files with 12 additions and 13 deletions

View File

@ -22,9 +22,9 @@
testAccessibleTree("imagemapcontainer", accTree);
// map group
// map group. Imagemaps are inlines by default, so TEXT_CONTAINER.
accTree =
{ PARAGRAPH: [
{ TEXT_CONTAINER: [
{ PARAGRAPH: [
{ TEXT_LEAF: [ ] },
{ LINK: [

View File

@ -427,8 +427,11 @@
<div id="container">
<img id="imgmap" width="447" height="15"
usemap="#atoz_map"
src="../letters.gif">
</div>
src="../letters.gif"><!--
Important: no whitespace between the <img> and the </div>, so we
don't end up with textframes there, because those would be reflected
in our accessible tree in some cases.
--></div>
</body>
</html>

View File

@ -0,0 +1,2 @@
<!DOCTYPE html>
Some text on one line

View File

@ -0,0 +1,2 @@
<!DOCTYPE html>
Some text <map></map> on one line

View File

@ -1602,6 +1602,7 @@ fails-if(!haveTestPlugin) == 599476.html 599476-ref.html
== 604737.html 604737-ref.html
== 605138-1.html 605138-1-ref.html
== 605157-1.xhtml 605157-1-ref.xhtml
== 607267-1.html 607267-1-ref.html
== 608756-1a.html 608756-1-ref.html
== 608756-1b.html 608756-1-ref.html
== 608756-2.html 608756-2-ref.html

View File

@ -59,7 +59,6 @@ html, html[dir],
legend, legend[dir],
li, li[dir],
listing, listing[dir],
map, map[dir],
marquee, marquee[dir],
menu, menu[dir],
nav, nav[dir],
@ -105,7 +104,6 @@ form,
header,
hgroup,
html,
map,
nav,
section {
display: block;

View File

@ -193,13 +193,6 @@ dl > dl {
}
/* Quirk: MAP acts like an inline, not a block */
map {
display: inline;
}
/* Quirk: Make floated images have a margin (b=58899) */
img[align=left] {