mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibWeb: Update the layout tree when CSS text-transform changes
Because we cache the transformed text string in text nodes affected by text-transform, we have to actually update the layout tree when this property value changes.
This commit is contained in:
committed by
Andreas Kling
parent
def0bcdfa2
commit
0a300fe59b
Notes:
github-actions[bot]
2025-03-08 19:23:07 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/0a300fe59b0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3864
@@ -0,0 +1,18 @@
|
||||
<style>
|
||||
#theDiv {
|
||||
width: max-content;
|
||||
}
|
||||
</style>
|
||||
<script src="../include.js"></script>
|
||||
<div id="theDiv">heLLo FrIends</div>
|
||||
<script>
|
||||
test(() => {
|
||||
println(theDiv.offsetWidth);
|
||||
theDiv.style.textTransform = 'uppercase';
|
||||
println(theDiv.offsetWidth);
|
||||
theDiv.style.textTransform = 'lowercase';
|
||||
println(theDiv.offsetWidth);
|
||||
theDiv.style.textTransform = 'capitalize';
|
||||
println(theDiv.offsetWidth);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user