Closed Bug 1739819 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 26352 - Test that border-image-width extends into padding given no border area (e.g. via border-style: none)

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox96 fixed)

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 26352 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/26352
Details from upstream follow.

Tyler Wilcock <tyler.l.wilcock@gmail.com> wrote:

Test that border-image-width extends into padding given no border area (e.g. via border-style: none)

When there is no border area (e.g. resulting from border-style: none), border-images with border-image-width should render into the padding / content area of the box.

Spec: https://www.w3.org/TR/2017/CR-css-backgrounds-3-20171017/#propdef-border-image-width

Editorial of the spec: https://github.com/w3c/csswg-drafts/issues/655#issuecomment-331059128

(emphasis mine)

Since by default a border image is only drawn in the border area, by default a border-style of none will make it disappear. However, the border-image-outset and border-image-width values can alter the “border” area into which the border image is drawn, extending it into the padding area (in the case of border-image-widths greater than the border-width) or extending it outside the border edge (in the case of border-image-outset greater than zero).

WebKit and Gecko exhibit this behavior, Chromium does not.

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/48de0b101bda [wpt PR 26352] - Test that border-image-width extends into padding given no border area (e.g. via border-style: none), a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.