diff --git a/layout/html/document/src/ua.css b/layout/html/document/src/ua.css index 38a2faedb57d..d787a7db2867 100644 --- a/layout/html/document/src/ua.css +++ b/layout/html/document/src/ua.css @@ -307,14 +307,16 @@ fieldset { ul, menu, dir { display: block; list-style-type: disc; - margin: 1em 0 1em 40px; + margin: 1em 0; + padding-left: 40px; counter-reset: -html-counter 0; } ol { display: block; list-style-type: decimal; - margin: 1em 0 1em 40px; + margin: 1em 0; + padding-left: 40px; counter-reset: -html-counter 0; } @@ -373,7 +375,7 @@ dl { dt { display: block; } -dl[compact] > DT { /* compact allowed on DL, OL, UL, DIR MENU */ +dl[compact] > dt { /* compact allowed on DL, OL, UL, DIR MENU */ display: compact; } dd { @@ -383,6 +385,9 @@ dd { dl dl { margin: 0 0 0 40px; } +dt dl, dd dl { + margin: 0; +} /* leafs */ diff --git a/layout/style/ua.css b/layout/style/ua.css index 38a2faedb57d..d787a7db2867 100644 --- a/layout/style/ua.css +++ b/layout/style/ua.css @@ -307,14 +307,16 @@ fieldset { ul, menu, dir { display: block; list-style-type: disc; - margin: 1em 0 1em 40px; + margin: 1em 0; + padding-left: 40px; counter-reset: -html-counter 0; } ol { display: block; list-style-type: decimal; - margin: 1em 0 1em 40px; + margin: 1em 0; + padding-left: 40px; counter-reset: -html-counter 0; } @@ -373,7 +375,7 @@ dl { dt { display: block; } -dl[compact] > DT { /* compact allowed on DL, OL, UL, DIR MENU */ +dl[compact] > dt { /* compact allowed on DL, OL, UL, DIR MENU */ display: compact; } dd { @@ -383,6 +385,9 @@ dd { dl dl { margin: 0 0 0 40px; } +dt dl, dd dl { + margin: 0; +} /* leafs */