Skip to content

Commit d45d238

Browse files
lillesmoz-wptsync-bot
authored andcommitted
Bug 1637391 [wpt PR 23546] - Invalidate style for inner editor when focus changes., a=testonly
Automatic update from web-platform-tests Invalidate style for inner editor when focus changes. The inner editor style invalidation relied on marking the element style dirty during style recalc if the host input style changed, but that might not be the case if the author overrides any focus styles. Bug: 1078663 Change-Id: I2914ff9bebc4bc239ca29ced7365b2c9155ebbb0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2196583 Reviewed-by: Ionel Popescu <[email protected]> Commit-Queue: Rune Lillesveen <[email protected]> Cr-Commit-Position: refs/heads/master@{#768172} -- wpt-commits: 41769744060adc5877bf51085bfa98b16fce5737 wpt-pr: 23546
1 parent 4556773 commit d45d238

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!doctype html>
2+
<title>CSS Test Reference</title>
3+
<style>
4+
input {
5+
all: initial;
6+
width: 100px;
7+
}
8+
</style>
9+
<p>You should not see an ellipsis for the text below.</p>
10+
<input id="input_element" value="xxxxxxxxxxxxxxxxxxxx">
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!doctype html>
2+
<title>CSS Overflow Test: text-overflow:ellipsis not rendered while editing</title>
3+
<link rel="help" href="https://drafts.csswg.org/css-overflow/#ellipsis-interaction">
4+
<link rel="match" href="text-overflow-ellipsis-editing-input-ref.html">
5+
<!-- The specification says it "may" render ellipsis as clip while editing, but
6+
all current engines do for input elements. -->
7+
<style>
8+
input {
9+
all: initial;
10+
width: 100px;
11+
text-overflow: ellipsis;
12+
caret-color: transparent;
13+
}
14+
</style>
15+
<p>You should not see an ellipsis for the text below.</p>
16+
<input id="input_element" value="xxxxxxxxxxxxxxxxxxxx">
17+
<script>
18+
input_element.offsetTop;
19+
input_element.focus();
20+
</script>

0 commit comments

Comments
 (0)