mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 08:30:50 +00:00
Previously if we encountered a keyword other than `fill` when parsing `<border-image-slice` we would return a nullptr. This could cause issues when we parse `<border-image-slice>` as part of parsing `border-image`, for example `border-image: 100% none` would fail as we would try parse `none` as part of the `<border-image-slice>` instead of `<border-image-source>`. This change makes it so that we don't consume the token and leave it to be parsed as part of the next section of the grammar.
12 lines
227 B
HTML
12 lines
227 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<style>
|
|
#foo {
|
|
border-image: 100% none;
|
|
}
|
|
</style>
|
|
<script>
|
|
test(() => {
|
|
println(document.styleSheets[0].cssRules[0].cssText);
|
|
});
|
|
</script>
|