mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Auto merge of #7656 - mbrubeck:incremental-text-6501, r=pcwalton
Reconstruct flows when text/font styles change These styles are used during text shaping. When they change, we need to re-run shaping and construct new flows. Fixes #6501. r? @pcwalton <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7656) <!-- Reviewable:end -->
This commit is contained in:
commit
acde10f005
5 changed files with 46 additions and 7 deletions
|
@ -162,6 +162,7 @@ prefs:"layout.writing-mode.enabled" == iframe/size_attributes_vertical_writing_m
|
|||
== img_width_style_intrinsic_width_a.html img_width_style_intrinsic_width_ref.html
|
||||
== incremental_float_a.html incremental_float_ref.html
|
||||
== incremental_inline_layout_a.html incremental_inline_layout_ref.html
|
||||
== incremental_letter_spacing_a.html incremental_letter_spacing_ref.html
|
||||
== inline_absolute_hypothetical_clip_a.html inline_absolute_hypothetical_clip_ref.html
|
||||
== inline_absolute_out_of_flow_a.html inline_absolute_out_of_flow_ref.html
|
||||
!= inline_background_a.html inline_background_ref.html
|
||||
|
|
15
tests/ref/incremental_letter_spacing_a.html
Normal file
15
tests/ref/incremental_letter_spacing_a.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Incremental layout letter-spacing test</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Hello, world!</p>
|
||||
<script>
|
||||
window.addEventListener("load", function() {
|
||||
document.querySelector("p").style.letterSpacing = "1em";
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
10
tests/ref/incremental_letter_spacing_ref.html
Normal file
10
tests/ref/incremental_letter_spacing_ref.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Incremental layout letter-spacing reference</title>
|
||||
</head>
|
||||
<body>
|
||||
<p style="letter-spacing: 1em">Hello, world!</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue