Closed Bug 1517521 Opened 5 years ago Closed 5 years ago

border-image-width doesn't handle calc() correclty.

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

<!DOCTYPE html>
<style>
  div {
    width: 200px;
    height: 200px;
    border: 100px solid;
    border-image: repeating-linear-gradient( 45deg, pink, pink 1%, purple 1%, purple 8%) 10;
    border-image-width: calc(100%);
  }
</style>
<div></div>

Asserts with:

  MOZ_ASSERT_UNREACHABLE: unexpected CSS unit for border image area division
Right now it asserts, no bueno.
Priority: -- → P3
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a1ee2a2f51ea
Handle calc() on border-image-width correctly. r=dholbert
https://hg.mozilla.org/mozilla-central/rev/a1ee2a2f51ea
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/14712 for changes under testing/web-platform/tests
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: