Closed Bug 624301 Opened 15 years ago Closed 15 years ago

background-clip fails if border is solid and opaque

Categories

(Core :: Web Painting, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla2.0b10
Tracking Status
blocking2.0 --- final+

People

(Reporter: phiw2, Assigned: bzbarsky)

References

Details

(Whiteboard: [softblocker])

Attachments

(2 files)

Attached file test case
The background-clip property fails if the border on the element is solid and opaque (and wider than 0). It works fine with a translucent border (rgba()) or other border-style (e.g. dashed). The testcase is based on http://samples.msdn.microsoft.com/ietestcenter/css3/css_harness.htm?url=border-radius-clip-002 (it doesn't matter what the value for border-radius is)
Looks like an oversight in the background-color path from when clipping to content-box was added in bug 549809.
Assignee: nobody → bzbarsky
Blocks: 549809
blocking2.0: --- → ?
Component: Graphics → Layout: View Rendering
Priority: -- → P1
QA Contact: thebes → layout.view-rendering
OS: Mac OS X → All
Hardware: x86 → All
Comment on attachment 502413 [details] [diff] [review] Only change background clip to padding-box for solid borders if it's border-box to start with. Er, right. r=dbaron
Attachment #502413 - Flags: review?(dbaron)
Attachment #502413 - Flags: review+
Attachment #502413 - Flags: approval2.0+
Whiteboard: [need landing]
philippe, thank you for the clear testcase, by the way!
Whiteboard: [need landing] → [need landing][softblocker]
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [need landing][softblocker] → [softblocker]
Target Milestone: --- → mozilla2.0b10
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: