From fdc4df06315eaed5ec4368c40a96c8be5c8c64a8 Mon Sep 17 00:00:00 2001 From: zcorpan Date: Tue, 12 Aug 2025 16:08:51 +0200 Subject: [PATCH] Apply the percentage height quirk for position: sticky Fixes #83. --- quirks.bs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/quirks.bs b/quirks.bs index ff4db32..f051645 100644 --- a/quirks.bs +++ b/quirks.bs @@ -242,12 +242,12 @@ quirk

In quirks mode, for the purpose of calculating the 'height' of an element |element|, if the computed value of the 'position' property of |element| is -''position/relative'' or ''position/static'', the specified value for the 'height' property of -|element| is a <>, and |element| does not have a computed value of the 'display' -property that is ''display/table-row'', ''display/table-row-group'', ''display/table-header-group'', -''display/table-footer-group'', ''display/table-cell'' or ''display/table-caption'', the -containing block of |element| must be calculated using the following algorithm, aborting on -the first step that returns a value: +''position/relative'', ''position/static'', or ''position/sticky'', the specified value for the +'height' property of |element| is a <>, and |element| does not have a +computed value of the 'display' property that is ''display/table-row'', +''display/table-row-group'', ''display/table-header-group'', ''display/table-footer-group'', +''display/table-cell'' or ''display/table-caption'', the containing block of |element| must +be calculated using the following algorithm, aborting on the first step that returns a value: