summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp
AgeCommit message (Collapse)Author
2021-10-16LibWeb: Serialize selectors only in CSSStyleRule::selector_text()Sam Atkins
Previously, this was returning the serialization for the whole style rule, which isn't what we want.
2021-10-16LibWeb: Move CSS selector-serialization code to Selector.{h,cpp}Sam Atkins
Also, renamed `builder` to `s` to match spec comments, and fixed a find-and-replace typo where some pseudo-class names were "last-of-pseudo_class" instead of "last-of-type".
2021-10-15LibWeb: Use W3C urls for CSSOM spec linksSam Atkins
https://www.w3.org/TR/cssom/ is the more permanent home of the CSSOM specification's latest version, and is up to date with the draft spec. Also, https://drafts.csswg.org/ has been down multiple times recently which made looking things up a pain.
2021-10-15LibWeb: Implement CSSStyleRule::set_selector_text()Sam Atkins
2021-10-01LibWeb: Implement CSSRule and CSSStyleDeclaration serializationAndreas Kling
There are a handful of FIXME's here, but this seems generally good. Note that CSS *values* don't get serialized in a spec-compliant way since we currently rely on StyleValue::to_string() which is ad-hoc.
2021-09-30LibWeb: Add the CSSStyleRule interface with some limited functionalityAndreas Kling
2021-07-14LibWeb: Make CSS::Selector reference countedSam Atkins
The end goal is to make the PseudoClass::not_selector be a Selector instead of a String that is repeatedly re-parsed. But since Selector contains a Vector of ComplexSelectors, which each have a Vector of SimpleSelectors, it's probably a good idea to not be passing them around by value anyway. :^)
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-03-13LibWeb: Rename StyleDeclaration => CSSStyleDeclaration to match CSSOMAndreas Kling
2021-03-07LibWeb: Rename StyleRule => CSSStyleRuleAndreas Kling
This matches the CSSOM specification.