Repository navigation
Add test case that demonstrates a crash with ::slotted + attribute selector - #925
papandreou wants to merge 1 commit into
Conversation
|
Please share some more info |
|
I don't really have any more info. As I said I literally randomly stumbled upon it while playing with generated CSS. The selector appears to be valid according to the CSS Scoping Module Level 1 WD The failing CI build has the stack trace of the failure: |
|
It does look weird, and I don't claim to understand exactly what the selector means, but isn't it valid per these rules? One step at a time: Replacing the literals it becomes |
|
It should be reported to |
|
@papandreou thanks for the explanation, yes it does looks like valid syntax. |
|
Thanks! I've reported it here: postcss/postcss-selector-parser#229 |
|
@papandreou I think it does looks like a valid parsing by the here, the prefix is the namespace and the later is the attribute
...
nodes: [
Attribute {
source: [Object],
sourceIndex: 0,
_namespace: 'foo',
_attribute: 'bar',
spaces: [Object],
type: 'attribute',
raws: {},
_constructed: true,
parent: [Circular]
}
],
...I think we need to check for |
I'm playing around with generating random CSS and stumbled upon a selector that crashes
postcss-minify-selectors.