mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Issue #2063 - Ensure a floated ::first-letter inherits from ::first-line.
This fixes the 24 year old Mozilla bug 13610. Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
parent
904ddfa28f
commit
09cbcd3413
1 changed files with 7 additions and 0 deletions
|
|
@ -9033,6 +9033,13 @@ nsFrame::CorrectStyleParentFrame(nsIFrame* aProspectiveParent,
|
|||
parent = sibling;
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure ::first-letter inherits from ::first-line even when floated, see
|
||||
// Issue #2063 / Mozilla bug 13610.
|
||||
if (parent->GetType() == nsGkAtoms::lineFrame &&
|
||||
parent == parent->FirstInFlow()) {
|
||||
return parent;
|
||||
}
|
||||
|
||||
nsIAtom* parentPseudo = parent->StyleContext()->GetPseudo();
|
||||
if (!parentPseudo ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue