Open Bug 1551000 Opened 5 years ago Updated 2 years ago

border-widths shouldn't be layout-dependent.

Categories

(Core :: DOM: CSS Object Model, defect, P3)

defect

Tracking

()

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(1 obsolete file)

In the following test-case:

<!doctype html>
<div id="inline" style="display: table-row; border-top: 10px solid red">A</span>
<pre>
<script>
  document.writeln(getComputedStyle(inline).borderTopWidth);
</script>
</pre>

We return zero but other engines just return 10px, which is the computed border.

https://drafts.csswg.org/cssom/#resolved-values doesn't list border widths, so we're on the wrong here I think.

Attachment #9064265 - Attachment description: Bug 1551000 - border-widths shouldn't be layout-dependent. r=mats,#style → Bug 1551000 - Computed 'border-*-width' values shouldn't be layout-dependent. r=mats,#style

A few tests failed with this, because our used border-width for themed stuff like <button> is theme-dependent. I could fix the tests by using appearance: none, but I think it's unfortunate so I'd like to come up with a better solution if any.

Priority: -- → P3
Attachment #9064265 - Attachment is obsolete: true
Severity: normal → S3

The test-case from comment 0 started returning 10px in Firefox 70 (20190802215241) (Pushlog).

Emilio, do you think this bug was fixed by bug 1404140?

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: