Skip to content

Is it possible to define a small subset of HTML and css and use servo as a generic layout engine for that? #25419

Answered by SimonSapin
parrotcar00 asked this question in General
Discussion options

You must be logged in to vote

In short: no. Today’s Servo doesn’t do this, and there is no plan to add such a thing.

“A subset of CSS and HTML” could mean anything. Presumable you want to define some useful subset. What are the less-useful parts to remove? What is gained by removing them? Note that if it’s actually a subset (rather than something that only looks similar on the surface) then that doesn’t really help with “the baggage of backwards compatibility”.

And, reading between the lines, I assume that by “a subset of CSS and HTML” you mean no JavaScript. But in Servo the DOM (the data structure that represents an HTML tree after parsing, which is necessary to render HTML even if there’s no JS in that particular d…

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jdm
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #25419 on July 29, 2020 17:11.