mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:22:43 +00:00 
			
		
		
		
	 e8d4236bbd
			
		
	
	
		e8d4236bbd
		
	
	
	
	
		
			
			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.
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			526 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			526 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/CSS/CSSRule.h>
 | |
| 
 | |
| namespace Web::CSS {
 | |
| 
 | |
| CSSRule::~CSSRule()
 | |
| {
 | |
| }
 | |
| 
 | |
| // https://www.w3.org/TR/cssom/#dom-cssrule-csstext
 | |
| String CSSRule::css_text() const
 | |
| {
 | |
|     // The cssText attribute must return a serialization of the CSS rule.
 | |
|     return serialized();
 | |
| }
 | |
| 
 | |
| // https://www.w3.org/TR/cssom/#dom-cssrule-csstext
 | |
| void CSSRule::set_css_text(StringView)
 | |
| {
 | |
|     // On setting the cssText attribute must do nothing.
 | |
| }
 | |
| 
 | |
| }
 |