Negative outline-offset is not clamped as spec
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox118 | --- | fixed |
People
(Reporter: canadahonk, Assigned: canadahonk)
References
Details
(Keywords: perf-alert)
Attachments
(2 files)
As per https://www.w3.org/TR/css-ui-4/#outline-offset (last paragraph):
Negative values must cause the outline to shrink into the border box. Both the height and the width of the outside of the shape drawn by the outline should not become smaller than twice the computed value of the outline-width property to make sure that an outline can be rendered even with large negative values. User agents should apply this constraint independently in each dimension. If the outline is drawn as multiple disconnected shapes, this constraint applies to each shape separately.
Currently Chromium does this but we do not (/ it's bugged?); too small a outline-offset value causes the outline to not be shown.
Assignee | ||
Comment 1•1 year ago
|
||
A negative outline-offset value should be clamped per spec as to stop it
from becoming invisible with large negative values.
Spec ref: https://www.w3.org/TR/css-ui-4/#outline-offset
WIP. Todo:
- Write WPT reftest
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 4•1 year ago
|
||
Backed out for reftest failures on outline-013.html & 424236-5.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/d44458b9c71f8290cf9c3c4344097d738a674a44
Log link of outline-013.html: https://treeherder.mozilla.org/logviewer?job_id=426781064&repo=autoland&lineNumber=12841
Log link of 424236-5.html : https://treeherder.mozilla.org/logviewer?job_id=426781167&repo=autoland&lineNumber=8120
Assignee | ||
Comment 6•1 year ago
|
||
Updated WPT expectations and removed that old (16 years) layout reftest, will wait for rereview before pushing again.
Assignee | ||
Updated•1 year ago
|
Comment 8•1 year ago
|
||
Backed out for causing reftests failures.
- Backout link
- Push with failures
- Failure Log
- Failure line: REFTEST TEST-UNEXPECTED-FAIL | layout/reftests/bugs/424236-9.html == layout/reftests/bugs/424236-9-ref.html | image comparison, max difference: 255, number of differing pixels: 13
Comment 10•1 year ago
|
||
Assignee | ||
Comment 11•1 year ago
|
||
Another old reftest was bugged, fixed and repushed.
Comment 12•1 year ago
|
||
bugherder |
Comment hidden (obsolete) |
Updated•1 year ago
|
Comment 15•1 year ago
|
||
Fairly skeptic this change is the culprit. Positive cnn speed improvements were noticed in try runs for bug 1849720. Could that be the case?
Comment 16•1 year ago
|
||
Hi :emilio. The push you reference has some fails (builds probably). Can we have the push you seen cnn speed improvements, please?
Description
•