mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Mark canvas element for relayout when width or height changes
While width and height are presentational hints on canvas, they actually map to the CSS aspect-ratio attribute, not to CSS width and height. For this reason, we actually need to manually mark for relayout here. Also import a WPT test that was flaky before this change.
This commit is contained in:
parent
14d5c638eb
commit
1a055fcb24
Notes:
github-actions[bot]
2025-05-19 11:59:00 +00:00
Author: https://github.com/awesomekling
Commit: 1a055fcb24
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4814
5 changed files with 42 additions and 0 deletions
|
@ -93,6 +93,7 @@ enum class StyleInvalidationReason {
|
|||
#define ENUMERATE_SET_NEEDS_LAYOUT_REASONS(X) \
|
||||
X(CharacterDataReplaceData) \
|
||||
X(FinalizeACrossDocumentNavigation) \
|
||||
X(HTMLCanvasElementWidthOrHeightChange) \
|
||||
X(HTMLImageElementReactToChangesInTheEnvironment) \
|
||||
X(HTMLImageElementUpdateTheImageData) \
|
||||
X(HTMLVideoElementSetVideoTrack) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue