Skip to content

Commit

Permalink
Bug 1933691 - Remove dir and menu selectors from orphaned list item q…
Browse files Browse the repository at this point in the history
…uirk. r=jwatt

WebKit and Blink never supported this quirk for dir or menu elements, so
we can match them.

Differential Revision: https://phabricator.services.mozilla.com/D230389
  • Loading branch information
emilio committed Nov 27, 2024
1 parent 500dbe2 commit 732b2d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/style/res/quirk.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ li {
}

/* restore outside position for lists inside LIs */
li :is(ul, ol, dir, menu) {
li :is(ul, ol) {
list-style-position: outside;
}

/* undo previous two rules for properly nested lists */
:is(ul, ol, dir, menu) :is(ul, ol, dir, menu, li) {
:is(ul, ol) :is(ul, ol, li) {
list-style-position: unset;
}

Expand Down

0 comments on commit 732b2d5

Please sign in to comment.