[css-conditional-5] Extend CSSContainerRule for multiple conditions.#13635
[css-conditional-5] Extend CSSContainerRule for multiple conditions.#13635
Conversation
|
@tabatkins any strong opinions on the "String or array" thing? I think that probably just returning the empty string when there are multiple conditions is better, because otherwise things like |
24674cd to
a962648
Compare
|
I don't have any strong feelings on the shape of this, I'd be fine with either approach. |
|
https://phabricator.services.mozilla.com/D287344 has some implementation and tests of this proposal. |
|
I do weakly prefer returning the empty string when it's multiple conditions, yeah. |
|
@mirisuzanne could I get your stamp as editor for the spec text? |
…ebidl,smaug As per w3c/csswg-drafts#13635. To be landed once there's a resolution and so on. The multiple conditions subtest is expected to fail until we implement parsing for those. Differential Revision: https://phabricator.services.mozilla.com/D287344
As per w3c/csswg-drafts#13635. To be landed once there's a resolution and so on. The multiple conditions subtest is expected to fail until we implement parsing for those. Differential Revision: https://phabricator.services.mozilla.com/D287344 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2022827 gecko-commit: 89c6e5274681ec27ca9ba117b32c38a89ce5362f gecko-commit-git: ede0eccbeb8afa2dbd04e1876fbe6115432eadd1 gecko-reviewers: AlaskanEmily, webidl, smaug
As per w3c/csswg-drafts#13635. To be landed once there's a resolution and so on. The multiple conditions subtest is expected to fail until we implement parsing for those. Differential Revision: https://phabricator.services.mozilla.com/D287344 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2022827 gecko-commit: 89c6e5274681ec27ca9ba117b32c38a89ce5362f gecko-commit-git: ede0eccbeb8afa2dbd04e1876fbe6115432eadd1 gecko-reviewers: AlaskanEmily, webidl, smaug
Return an empty string for multiple conditions as per resolution. Fixes #10845
a962648 to
4e66daf
Compare
|
@AtkinsSJ thanks for the review! I think I addressed your comments, but lmk otherwise :) |
mirisuzanne
left a comment
There was a problem hiding this comment.
This looks good to me (with the caveat that I have very little experience with CSSOM from either the spec or author end)
Open questions:
Do we want to do this "return string or array thing"? Or should we just return the empty string on
containerName/containerQuerywhen there are multiple conditions? Maybe that's simpler.If we do the "string or array thing", do we still want to expose the "always array" version (
containerNames/containerQueries)? I think so, but I guess I could go either way.Fixes #10845