Page MenuHomePhabricator

Bug 1998285 - Make computed borders not affect the computed value. r=#layout,#style
ClosedPublic

Authored by emilio on Nov 4 2025, 11:12 PM.
Referenced Files
Unknown Object (File)
Thu, Apr 16, 8:58 AM
Unknown Object (File)
Tue, Apr 14, 1:02 PM
Unknown Object (File)
Mon, Apr 13, 8:35 PM
Unknown Object (File)
Mon, Apr 13, 6:47 PM
Unknown Object (File)
Mon, Apr 13, 4:55 PM
Unknown Object (File)
Mon, Apr 13, 4:07 PM
Unknown Object (File)
Mon, Apr 13, 2:13 PM
Unknown Object (File)
Mon, Apr 13, 1:16 PM

Details

Summary

As per the resolution in
https://github.com/w3c/csswg-drafts/issues/11494.

We need to move the resolved value stuff for border properties to style
to avoid regressing shorthand serialization tests. Note we no longer
have layout-dependent borders tho.

Fix a few tests related to inheritance which I think chromium just gets
wrong for border-width, see the issue discussion. What you inherit is
the computed value.

Event Timeline

emilio created this revision.
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Nov 4 2025, 11:13 PM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

Code analysis found 1 defect in diff 1150329:

  • 1 defect found by clang-format
WARNING: Found 1 defect (warning level) that can be dismissed.

You can run this analysis locally with:

  • ./mach clang-format -p layout/style/nsChangeHint.h

For your convenience, here is a patch that fixes all the clang-format defects (use it in your repository with hg import or git apply -p0).


If you see a problem in this automated review, please report it here.

You can view these defects in the Diff Detail section of Phabricator diff 1150329.

emilio updated this revision to Diff 1150566.
emilio edited the summary of this revision. (Show Details)
emilio requested review of this revision.Nov 5 2025, 1:15 PM
emilio updated this revision to Diff 1150568.
emilio retitled this revision from WIP: Bug 1998285 - Make computed borders not affect the computed value. r=#layout to Bug 1998285 - Make computed borders not affect the computed value. r=#layout,#style.
emilio edited the summary of this revision. (Show Details)
emilio added reviewers: layout-reviewers, Restricted Project.

Code analysis found 1 defect in diff 1150568:

  • 1 defect found by clang-format
WARNING: Found 1 defect (warning level) that can be dismissed.

You can run this analysis locally with:

  • ./mach clang-format -p layout/style/nsChangeHint.h

For your convenience, here is a patch that fixes all the clang-format defects (use it in your repository with hg import or git apply -p0).


If you see a problem in this automated review, please report it here.

You can view these defects in the Diff Detail section of Phabricator diff 1150568.

Code analysis found 1 defect in diff 1150621:

  • 1 defect found by eslint (Mozlint)
IMPORTANT: Found 1 defect (error level) that must be fixed before landing.

You can run this analysis locally with:

  • ./mach lint --warnings --outgoing

If you see a problem in this automated review, please report it here.

You can view these defects in the Diff Detail section of Phabricator diff 1150621.

I can confirm this works as expected for Typed OM. In particular, for example border-*-width can now reify into a CSSNumericValue even when the computed border style is none or hidden, which matches what the WPT checks for.

Also, it’s nice to see that the upcoming spec change simplifies the implementation rather than making it more complicated.

Let me check a few more details.

Looks good (from my point of view).

This revision is now accepted and ready to land.Nov 11 2025, 4:21 PM

This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of testing-approved, testing-exception-unchanged, testing-exception-ui, testing-exception-elsewhere, testing-exception-other. Tip: this Firefox add-on makes it easy!