-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove invalid references to margin-box #28157
Conversation
margin-box was removed in the 2021 5 August 2021 Candidate Reccomendation, see https://drafts.fxtf.org/css-masking-1/#changes
Preview URLs
External URLs (2)URL: URL: (comment last updated: 2023-08-03 05:54:08) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update, @FormularSumo . Your changes look correct, so I'm approving the PR.
The one comment I have is that I looked around the site for other mentions of margin-box
, and I think there might be other places where it is no longer a valid value too — this looked to be the case with clip-path
(in Chromium at least), box-sizing
(this page implies it still is), and offset-path
(in Firefox and Chromium).
I wondered if you wanted to investigate these and correct them as well, in the same PR?
Ah I hadn't realised there might be others, but I'm happy to take a look! Will add anything else I find to this pull request and let you know when that's done. |
I searched the GitHub repo for mentions of margin-box and found 12, including
The other one is very minor, on Also I was wondering, what do you mean by not valid only in Chromium or Firefox? Doesn't the content of mdn pages apply to all browsers (where supported)? |
Sorry yeah, by this I meant that I tested it in the latest browser versions, and in those cases it came up in the devtools as being an unrecognised value. The spec I'm looking at for |
I've looked through all of them again using the editors drafts this time (updated links in the document I linked). The only one that seems to have changed its use of
which I now think should be more like
Does that look correct to you? |
Yes. For fixing the |
Geometry box is from an old spec, and has since been replaced with Coord box. Additionally only some of the possible values were listed, now all of them are
In https://drafts.csswg.org/css-box-4/#margin-edge the area of the margin edges is described as the margin box, without a dash. margin-box is used elsewhere in https://drafts.csswg.org/css-box-4/#keywords as a keyword for some box edges. I think the use of it on this page is much more similar to the first example so probably shouldn't use a dash.
I've fixed the margin-box issues on that page, and also made the minor change to Edit, seems like issues have already been created for adding rect() and xywh() - see #28287 and #28286 |
Do you know how I would remove margin-box from the Formal Syntax section of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, I think this PR is wrapped up for now; thanks for the contribution, @FormularSumo!
@FormularSumo The formal syntax data is pulled from the definitions available in https://github.com/mdn/data, specifically in the Ah, but The trouble is, I don't know whether this would then cause other overall property definitions to be wrong, so this would require some investigation. It is a bit of an unstable house of cards. |
Not any more: since mdn/yari#4656 formal syntax is pulled from the specs, via the W3C's @webref/css package. The "syntax" bit of mdn/data isn't used in MDN any more (and if we could figure it out, we'd use webref for the other stuff in mdn/data).
|
Since w3c/fxtf-drafts#439 and the related pull request were closed, mask-clip uses <coord-box> instead of <geometry-box>. This was mostly fixed in this mdn#28157 previous pull request but I forgot to update this comment as well.
Since w3c/fxtf-drafts#439 and the related pull request were closed, mask-clip uses <coord-box> instead of <geometry-box>. This was mostly fixed in this #28157 previous pull request but I forgot to update this comment as well.
Since w3c/fxtf-drafts#439 and the related pull request were closed, mask-clip uses <coord-box> instead of <geometry-box>. This was mostly fixed in this mdn#28157 previous pull request but I forgot to update this comment as well.
Description
Removed incorrect references and descriptions of the margin-box property
Motivation
margin-box was removed from mask-origin and mask-clip in the 5 August 2021 CSS Masking Module Level 1 Candidate Recommendation
Additional details
https://drafts.fxtf.org/css-masking-1/#changes
https://bugzilla.mozilla.org/show_bug.cgi?id=1823257
web-platform-tests/wpt#41166