Absolutely-positioned element in <ruby> is not shown
Categories
(Core :: Layout: Ruby, defect)
Tracking
()
People
(Reporter: karlcow, Assigned: xidorn)
References
()
Details
Attachments
(3 files)
following the bug report on https://webcompat.com/issues/53076
And this test:
<div>
<ruby data-ruby="しぶ">澁<rt>しぶ</rt></ruby>
</div>
div {
padding: 5em;
}
[data-ruby] {
position: relative;
}
[data-ruby]::before {
content: attr(data-ruby);
position: absolute;
top: -1em;
left: 0px;
right: 0px;
margin: auto;
font-size: 0.5em;
text-align: center;
background-color: gold;
}
rt {
display: none;
}
as we can see in the screenshot. Chrome displays the characters but not firefox.
Reporter | ||
Comment 1•5 years ago
|
||
Test case available at https://codepen.io/webcompat/pen/yLYWoNB
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
::before
creates a regular inline box inside the <ruby>
box, so it's basically equivalent to using a <span>
instead of a ::before
pseudo-element, which doesn't show up either.
Xidorn do you know if this is supposed to work per spec?
Comment 4•5 years ago
|
||
Err, see above :)
Assignee | ||
Comment 5•5 years ago
|
||
That's a very interesting case... I totally have no idea what the site get from doing this :/
Anyway, I don't see why it shouldn't be displayed. I'll have a look this weekend.
Assignee | ||
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Given that this is confirmed and assigned, I am going to give this an S3 severity.
Assignee | ||
Comment 7•5 years ago
|
||
Comment 12•5 years ago
|
||
Backed out for causing failures at abs-in-ruby-base-container.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/fb5f607b3f90aa0d69d97c456ebc57638b05fca4
Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=6bb6a5cdc941eaa15c0e36dcaf8e4ad8509d4e90&selectedTaskRun=P0vgYmc6QnWgzkZNGBzUIw-0
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=305012494&repo=autoland&lineNumber=3136
Assignee | ||
Comment 13•5 years ago
|
||
I believe the test failure is related to bug 1643868 somehow. I can observe similar issue on Linux, but it happens more consistently on Android for some reason. It's especially interesting that connecting inspector to GeckoView resets the position.
Comment 14•5 years ago
|
||
Comment 16•5 years ago
|
||
bugherder |
Comment 18•5 years ago
|
||
The patch landed in nightly and beta is affected.
:xidorn, is this bug important enough to require an uplift?
If not please set status_beta
to wontfix
.
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•5 years ago
|
Description
•