Repository navigation
layout: Add support for the <wbr> element - #48755
Merged
Merged
Conversation
|
🔨 Triggering try run (#37809356570) for Linux (WPT) |
|
Test results for linux-wpt from try job (#37809356570): Flaky unexpected result (25)
Stable unexpected results that are known to be intermittent (13)
Stable unexpected results (4)
|
|
|
mrobinson
force-pushed
the
layout-add-support-for-wbr
branch
from
October 8, 2026 18:06
59015ba to
0b98fc3
Compare
mrobinson
marked this pull request as ready for review
October 8, 2026 18:07
nicoburns
approved these changes
Oct 8, 2026
mrobinson
enabled auto-merge
October 8, 2026 18:13
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 8, 2026
Servo previously had a non-functional user-agent stylesheet implementation of `<wbr>` (that maybe worked in old layout). This change replaces it with a box tree construction path that adds a zero-width space to inline content when `<wbr>` is encountered. This is more-or-less what other browsers do and should be undetectable by web content. Signed-off-by: Martin Robinson <[email protected]>
mrobinson
force-pushed
the
layout-add-support-for-wbr
branch
from
October 8, 2026 21:40
0b98fc3 to
26bad7f
Compare
mrobinson
enabled auto-merge
October 8, 2026 21:40
hhhwsqhhh
pushed a commit
to hhhwsqhhh/servo
that referenced
this pull request
Oct 12, 2026
Servo previously had a non-functional user-agent stylesheet implementation of `<wbr>` (that maybe worked in old layout). This change replaces it with a box tree construction path that adds a zero-width space to inline content when `<wbr>` is encountered. This is more-or-less what other browsers do and should be undetectable by web content. Testing: Three tests start to pass and two start to fail. The failing tests will pass once servo#48753 lands. Fixes: servo#21722. Signed-off-by: Martin Robinson <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Servo previously had a non-functional user-agent stylesheet
implementation of
<wbr>(that maybe worked in old layout). This changereplaces it with a box tree construction path that adds a zero-width
space to inline content when
<wbr>is encountered. This ismore-or-less what other browsers do and should be undetectable by web
content.
Testing: Three tests start to pass and two start to fail.
The failing tests will pass once #48753 lands.
Fixes: #21722.