Fixes text-indent for DD in quirks mode. Patch provided by fantasai, b=5119, r=attinasi,hixie sr=shaver

This commit is contained in:
attinasi%netscape.com 2001-03-12 22:36:11 +00:00
parent cee9d0e301
commit c12bc73aae
2 changed files with 32 additions and 36 deletions

View File

@ -161,31 +161,29 @@ hr:after {
/* Quirk: DD not in DL has text-indent instead of margin (b=5119) */
dd {
text-indent: 40px;
display: inline;
margin: 0;
}
dd > * {
text-indent: 0;
dd:before {
display: inline;
white-space: pre;
font-size: 1px;
line-height: 0;
content: "\A ";
margin-right: 40px;
}
dl > dd:before {
white-space: normal;
font-size: inherit;
line-height: inherit;
content: none;
margin: 0;
}
dl > dd {
text-indent: inherit;
display: block;
margin-left: 40px;
}
dl > dd > * {
text-indent: inherit;
}
dl dl {
margin: 0 0 0 40px;
}
dt dl, dd dl {
margin: 0 0 0 0;
}
/* Quirk: MAP acts like an inline, not a block */
map {
display: inline;

View File

@ -161,31 +161,29 @@ hr:after {
/* Quirk: DD not in DL has text-indent instead of margin (b=5119) */
dd {
text-indent: 40px;
display: inline;
margin: 0;
}
dd > * {
text-indent: 0;
dd:before {
display: inline;
white-space: pre;
font-size: 1px;
line-height: 0;
content: "\A ";
margin-right: 40px;
}
dl > dd:before {
white-space: normal;
font-size: inherit;
line-height: inherit;
content: none;
margin: 0;
}
dl > dd {
text-indent: inherit;
display: block;
margin-left: 40px;
}
dl > dd > * {
text-indent: inherit;
}
dl dl {
margin: 0 0 0 40px;
}
dt dl, dd dl {
margin: 0 0 0 0;
}
/* Quirk: MAP acts like an inline, not a block */
map {
display: inline;