Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1fdbe7846a5f0d35c223161a92620247c630bdc5
https://github.com/WebKit/WebKit/commit/1fdbe7846a5f0d35c223161a92620247c630bdc5
Author: Ahmad Saleem <[email protected]>
Date: 2026-09-28 (Mon, 28 Sep 2026)
Changed paths:
A LayoutTests/svg/z-index/outermost-svg-static-z-index-ignored-expected.html
A LayoutTests/svg/z-index/outermost-svg-static-z-index-ignored.html
M Source/WebCore/style/StyleAdjuster.cpp
Log Message:
-----------
[LBSE] z-index incorrectly applied to a statically-positioned outermost <svg>
on first style resolution
https://bugs.webkit.org/show_bug.cgi?id=324941
rdar://188163250
Reviewed by Nikolas Zimmermann.
StyleAdjuster's z-index check for the outermost <svg> read the position
from the old renderer's style instead of the style being adjusted. On
first resolution there is no renderer yet, so a static outer <svg> with
an explicit z-index was wrongly treated as positioned and had its z-index
applied, incorrectly establishing a stacking context until a later recalc
corrected it. Read position() from the style being adjusted instead,
matching the non-SVG path.
Test: svg/z-index/outermost-svg-static-z-index-ignored.html
* LayoutTests/svg/z-index/outermost-svg-static-z-index-ignored-expected.html:
Added.
* LayoutTests/svg/z-index/outermost-svg-static-z-index-ignored.html: Added.
* Source/WebCore/style/StyleAdjuster.cpp:
(WebCore::Style::Adjuster::adjust const):
Canonical link: https://commits.webkit.org/322097@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications