Closed
Bug 1804126
Opened 3 years ago
Closed 3 years ago
Implement Kleene logic for query feature expressions
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
109 Branch
| Tracking | Status | |
|---|---|---|
| firefox109 | --- | fixed |
People
(Reporter: Oriol, Assigned: Oriol)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
https://drafts.csswg.org/css-contain-3/#size-container
If the query container does not have a principal box, or the principal box is not a layout containment box, or the query container does not support container size queries on the relevant axes, then the result of evaluating the size feature is unknown.
Consider
<!DOCTYPE html>
<style>
div {
container-type: inline-size;
}
@container (block-size >= 0px) {
p { color: cyan; }
}
@container not (block-size >= 0px) {
p { background: red; }
}
</style>
<div><p>Lorem ipsum</p></div>
block-size >= 0px doesn't match since the query container does not support container size queries on the block axis. But then not (block-size >= 0px) matches, which is wrong, since the negation of unknown is also unknown.
See https://drafts.csswg.org/mediaqueries-5/#evaluating
The negation of unknown is unknown.
| Assignee | ||
Comment 1•3 years ago
|
||
Pushed by oriol-bugzilla@hotmail.com:
https://hg.mozilla.org/integration/autoland/rev/1bf481423090
Implement Kleene logic for query feature expressions. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/37345 for changes under testing/web-platform/tests
Comment 4•3 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox109:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in
before you can comment on or make changes to this bug.
Description
•